Code

Cast second arg to iconv to remove warning
authorJonas Fonseca <fonseca@diku.dk>
Sun, 29 Oct 2006 20:36:32 +0000 (21:36 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 29 Oct 2006 20:36:32 +0000 (21:36 +0100)
tig.c

diff --git a/tig.c b/tig.c
index b864e0b6e8d1953046637169509aaf736f32a209..fcfbc4326ba67a2ebe001c4310213378a5aa2091 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1874,7 +1874,7 @@ update_view(struct view *view)
 
                        size_t ret;
 
-                       ret = iconv(opt_iconv, &inbuf, &inlen, &outbuf, &outlen);
+                       ret = iconv(opt_iconv, (const char **) &inbuf, &inlen, &outbuf, &outlen);
                        if (ret != (size_t) -1) {
                                line = out_buffer;
                                linelen = strlen(out_buffer);