From: Jonas Fonseca Date: Sun, 10 Sep 2006 23:21:03 +0000 (+0200) Subject: Use ICONV_NONE instead of (iconv_t) -1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20f4b4a3dce08ccdf847d3e6c43da955051f2efc;p=tig.git Use ICONV_NONE instead of (iconv_t) -1 --- diff --git a/tig.c b/tig.c index 4f43681..df2ede1 100644 --- a/tig.c +++ b/tig.c @@ -3416,7 +3416,7 @@ main(int argc, char *argv[]) if (*opt_codeset && strcmp(opt_codeset, opt_encoding)) { opt_iconv = iconv_open(opt_codeset, opt_encoding); - if (opt_iconv == (iconv_t) -1) + if (opt_iconv == ICONV_NONE) die("Failed to initialize character set conversion"); }