From 20f4b4a3dce08ccdf847d3e6c43da955051f2efc Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 11 Sep 2006 01:21:03 +0200 Subject: [PATCH] Use ICONV_NONE instead of (iconv_t) -1 --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.30.2