diff options
author | Martin Pool <mbp@samba.org> | 2001-11-23 04:53:56 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-11-23 04:53:56 +0000 |
commit | a875b3a6e7a9501a31fe15fb9b04394a95484e77 (patch) | |
tree | 487712bbebdedc678fa6f4ee700b71240ccb68ac /source/lib | |
parent | 72060a6f5af505d597f372d550d7f3fe559e5550 (diff) | |
download | samba-a875b3a6e7a9501a31fe15fb9b04394a95484e77.tar.gz samba-a875b3a6e7a9501a31fe15fb9b04394a95484e77.tar.xz samba-a875b3a6e7a9501a31fe15fb9b04394a95484e77.zip |
More better now.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/charcnv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c index 11ae2d9143a..ab9554f8486 100644 --- a/source/lib/charcnv.c +++ b/source/lib/charcnv.c @@ -95,7 +95,7 @@ size_t convert_string(charset_t from, charset_t to, { size_t i_len, o_len; size_t retval; - char* inbuf = (char*)src; + const char* inbuf = (char*)src; char* outbuf = (char*)dest; smb_iconv_t descriptor; @@ -118,7 +118,7 @@ size_t convert_string(charset_t from, charset_t to, i_len=srclen; o_len=destlen; - retval = smb_iconv(descriptor, &(const char *)inbuf, &i_len, &outbuf, &o_len); + retval = smb_iconv(descriptor, &inbuf, &i_len, &outbuf, &o_len); if(retval==-1) { char *reason="unknown error"; @@ -155,7 +155,7 @@ size_t convert_string_allocate(charset_t from, charset_t to, { size_t i_len, o_len, destlen; size_t retval; - char *inbuf = (char *)src; + const char *inbuf = (char *)src; char *outbuf, *ob; smb_iconv_t descriptor; @@ -190,7 +190,7 @@ convert: i_len = srclen; o_len = destlen; retval = smb_iconv(descriptor, - &(const char *) inbuf, &i_len, + &inbuf, &i_len, &outbuf, &o_len); if(retval == -1) { |