workaround a stupid issue in how decoding is performed in mutt *sigh*
[apps/madmutt.git] / state.h
diff --git a/state.h b/state.h
index 45f97e2..fb1c057 100644 (file)
--- a/state.h
+++ b/state.h
@@ -29,7 +29,6 @@ typedef struct {
 #define M_CHARCONV     (1<<4)  /* Do character set conversions */
 #define M_PRINTING     (1<<5)  /* are we printing? - M_DISPLAY "light" */
 #define M_REPLYING     (1<<6)  /* are we replying? */
-#define M_FIRSTDONE    (1<<7)  /* the first attachment has been done */
 
 #define state_set_prefix(s) ((s)->flags |= M_PENDINGPREFIX)
 #define state_reset_prefix(s) ((s)->flags &= ~M_PENDINGPREFIX)
@@ -39,8 +38,9 @@ typedef struct {
 void state_mark_attach (STATE *);
 void state_attach_puts (const char *, STATE *);
 void state_prefix_putc (char, STATE *);
-int state_printf (STATE *, const char *, ...);
+int state_printf (STATE *, const char *, ...)
+    __attribute__((format(printf, 2, 3)));
 
-void mutt_convert_to_state (iconv_t, char*, size_t*, STATE*);
+void mutt_convert_to_state (iconv_t, char*, ssize_t*, STATE*);
 
 #endif /* !_MUTT_STATE_H */