summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-11-13 17:27:21 +0000
committerRichard Sharpe <sharpe@samba.org>2003-11-13 17:27:21 +0000
commite6994778ec082fab422051028ddbdd81b9ae0275 (patch)
treee4243464a1e3a10d2a2979724fea2f33050bd4ae /source3
parentc3c1e248ad3ee74834f669dee06ac5a971daa7e5 (diff)
downloadsamba-e6994778ec082fab422051028ddbdd81b9ae0275.tar.gz
samba-e6994778ec082fab422051028ddbdd81b9ae0275.tar.bz2
samba-e6994778ec082fab422051028ddbdd81b9ae0275.zip
Fix a couple of warnings with casts.
(This used to be commit 58d7a51c5762a444aae6a795a3703269134423d7)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/charcnv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 9d15c6daa0..0a6a1fc75d 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -192,7 +192,7 @@ static size_t convert_string_internal(charset_t from, charset_t to,
i_len=srclen;
o_len=destlen;
- retval = smb_iconv(descriptor, &inbuf, &i_len, &outbuf, &o_len);
+ retval = smb_iconv(descriptor, (char **)&inbuf, &i_len, &outbuf, &o_len);
if(retval==(size_t)-1) {
const char *reason="unknown error";
switch(errno) {
@@ -426,7 +426,7 @@ convert:
i_len = srclen;
o_len = destlen;
retval = smb_iconv(descriptor,
- &inbuf, &i_len,
+ (char **)&inbuf, &i_len,
&outbuf, &o_len);
if(retval == (size_t)-1) {
const char *reason="unknown error";