<<< Date Index >>>     <<< Thread Index >>>

[PATCH 1 of 2] Use proper prototype for mutt_get_default_charset(), fix fallout



# HG changeset patch
# User Matthias Andree <matthias.andree@xxxxxx>
# Date 1248385890 -7200
# Branch HEAD
# Node ID 02a82e1ae8cbfaae70e10554198441c150ba1648
# Parent  713a18794bb777570935780758e6a3e963116e61
Use proper prototype for mutt_get_default_charset(), fix fallout.

diff -r 713a18794bb7 -r 02a82e1ae8cb charset.h
--- a/charset.h Wed Jul 08 00:46:56 2009 +0200
+++ b/charset.h Thu Jul 23 23:51:30 2009 +0200
@@ -47,7 +47,7 @@
 void fgetconv_close (FGETCONV **);
 
 void mutt_set_langinfo_charset (void);
-char *mutt_get_default_charset ();
+char *mutt_get_default_charset (void);
 
 /* flags for charset.c:mutt_convert_string(), fgetconv_open(), and
  * mutt_iconv_open(). Note that applying charset-hooks to tocode is
diff -r 713a18794bb7 -r 02a82e1ae8cb rfc2047.c
--- a/rfc2047.c Wed Jul 08 00:46:56 2009 +0200
+++ b/rfc2047.c Thu Jul 23 23:51:30 2009 +0200
@@ -119,7 +119,7 @@
     }
   }
   mutt_convert_string (ps,
-      (const char *)mutt_get_default_charset (AssumedCharset),
+      (const char *)mutt_get_default_charset (),
       Charset, M_ICONV_HOOK_FROM);
   return -1;
 }