Code

Use ICONV_NONE instead of (iconv_t) -1
authorJonas Fonseca <fonseca@diku.dk>
Sun, 10 Sep 2006 23:21:03 +0000 (01:21 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sun, 10 Sep 2006 23:21:03 +0000 (01:21 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 4f43681040b85ef66d7bfb33b4581c0afa5fd5c1..df2ede1b60e2074b0c95979a0664e72ecf71acb6 100644 (file)
--- 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");
        }