From: Horst H. von Brand Date: Fri, 15 Dec 2006 19:46:58 +0000 (+0100) Subject: Fix parameter warning for iconv(3) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7361622d7b04e3ce3b84dd95545fb827b1c4e97d;p=tig.git Fix parameter warning for iconv(3) [ This reverts commit d9c49e6ec76ac311bbe9a1d0d3699ff4be79e64f that tried to fix compile warning on Mac OS X. ] Signed-off-by: Horst H. von Brand Signed-off-by: Jonas Fonseca --- diff --git a/tig.c b/tig.c index 7172449..16139c4 100644 --- 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);