Code

Fix parameter warning for iconv(3)
authorHorst H. von Brand <vonbrand@inf.utfsm.cl>
Fri, 15 Dec 2006 19:46:58 +0000 (20:46 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 15 Dec 2006 19:46:58 +0000 (20:46 +0100)
[ This reverts commit d9c49e6ec76ac311bbe9a1d0d3699ff4be79e64f that tried
  to fix compile warning on Mac OS X. ]

Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c

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