From: David Levine Date: Thu, 5 Dec 2013 02:29:05 +0000 (-0600) Subject: Use ICONV_CONST in declaration of variable that's passed to X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/7e40862e6a4da7810a46aa1e28b05e527fdc208a?ds=sidebyside;hp=-c Use ICONV_CONST in declaration of variable that's passed to iconv(), to quiet warning in FreeBSD 10. --- 7e40862e6a4da7810a46aa1e28b05e527fdc208a diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 10e9af51..89c9946e 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -1885,7 +1885,7 @@ convert_codeset (CT ct, char *dest_codeset, int *message_mods) { min (bytes_to_read, sizeof src_buffer), *fp)) > 0) { char dest_buffer[BUFSIZ]; - char *ib = src_buffer, *ob = dest_buffer; + ICONV_CONST char *ib = src_buffer, *ob = dest_buffer; size_t outbytes = sizeof dest_buffer; size_t outbytes_before = outbytes;