X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=state.c;h=1d410171cb89187c6f9b2a8c7f8028aa04b98b0b;hp=86a75f5bbdf1f9a51178ca136b5b3c0c677f2b46;hb=66b3c35e0bb00392991ce83bbf44cbab0ce3fd78;hpb=35f4e8cefa22d98782a720e4df428a1ce3be2237 diff --git a/state.c b/state.c index 86a75f5..1d41017 100644 --- a/state.c +++ b/state.c @@ -6,13 +6,8 @@ * It's licensed under the GNU General Public License, * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -#include "config.h" -#endif -#include -#include -#include +#include #include @@ -36,7 +31,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) @@ -47,7 +42,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;