[patch] Samba Janitorial work: non-const pointer in iconv.c

Jeremy Allison jra at samba.org
Wed Jan 23 02:22:02 GMT 2008


On Tue, Jan 22, 2008 at 01:16:10PM -0500, David Collier-Brown wrote:
> In lib/iconv.c, we pass a non-const char ** pointer to iconv, and get
> a warning from gcc.  The correction is:

Unfortunately the Linux header has :

extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
                     size_t *__restrict __inbytesleft,
                     char **__restrict __outbuf,
                     size_t *__restrict __outbytesleft);

No const here.... :-(


More information about the samba-technical mailing list