X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=state.c;h=2f0c8f7bfd1c10b3eb0c810a6a6950e6f16b5d6e;hp=12f3e992f5325130029b7d0e05a66de2d3b57632;hb=8d5f74a1030b2e5e93027c91c35b7facea2d61be;hpb=23e6291cb5d5b4cd2008403d8b628007fd75ff23 diff --git a/state.c b/state.c index 12f3e99..2f0c8f7 100644 --- a/state.c +++ b/state.c @@ -14,9 +14,10 @@ #include #include +#include + #include "mutt.h" #include "state.h" -#include "rfc3676.h" static void state_prefix_put (const char *d, ssize_t dlen, STATE * s) { @@ -35,7 +36,7 @@ void mutt_convert_to_state (iconv_t cd, char *bufi, ssize_t * l, STATE * s) ssize_t ibl, obl; if (!bufi) { - if (cd != (iconv_t) (-1)) { + if (cd != MUTT_ICONV_ERROR) { ob = bufo, obl = sizeof (bufo); my_iconv(cd, 0, 0, &ob, &obl); if (ob != bufo) @@ -46,7 +47,7 @@ void mutt_convert_to_state (iconv_t cd, char *bufi, ssize_t * l, STATE * s) return; } - if (cd == (iconv_t) (-1)) { + if (cd == MUTT_ICONV_ERROR) { state_prefix_put (bufi, *l, s); *l = 0; return;