From d9c49e6ec76ac311bbe9a1d0d3699ff4be79e64f Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 29 Oct 2006 21:36:32 +0100 Subject: [PATCH] Cast second arg to iconv to remove warning --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index b864e0b..fcfbc43 100644 --- 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); -- 2.30.2