From: Wayne Davison Date: Mon, 21 May 2007 03:56:06 +0000 (+0000) Subject: Get rid of compiler warning about iconv()'s second parameter. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/58a37ed34a601dc828c910ccb2effc1f4a57e03d?hp=fe8d61e5d5e9fc9dcb7787558f3178d482fc5784 Get rid of compiler warning about iconv()'s second parameter. --- diff --git a/flist.c b/flist.c index 2b38ccbe..1fd20f58 100644 --- a/flist.c +++ b/flist.c @@ -643,7 +643,8 @@ static struct file_struct *recv_file_entry(struct file_list *flist, #ifdef ICONV_OPTION if (ic_recv != (iconv_t)-1) { - char *obuf = thisname, *ibuf = lastname; + char *obuf = thisname; + ICONV_CONST char *ibuf = (ICONV_CONST char *)lastname; size_t ocnt = MAXPATHLEN, icnt = basename_len; if (icnt >= MAXPATHLEN) {