X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/tig/blobdiff_plain/ad8878a7694c64897795486a871d6c40d6861566..e47afdf2f78acbcb5c08f422be5ce37e0e99a5fc:/tig.c diff --git a/tig.c b/tig.c index 51d0fee..0390b3a 100644 --- a/tig.c +++ b/tig.c @@ -80,9 +80,6 @@ static size_t utf8_length(const char *string, size_t max_width, int *coloffset, #define COLOR_DEFAULT (-1) #define ICONV_NONE ((iconv_t) -1) -#ifndef ICONV_INBUF_TYPE -#define ICONV_INBUF_TYPE char * -#endif /* The format and size of the date column in the main view. */ #define DATE_FORMAT "%Y-%m-%d %H:%M" @@ -1943,7 +1940,7 @@ update_view(struct view *view) line[linelen - 1] = 0; if (opt_iconv != ICONV_NONE) { - ICONV_INBUF_TYPE inbuf = line; + ICONV_CONST char *inbuf = line; size_t inlen = linelen; char *outbuf = out_buffer;