git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3c1e24
)
Fix a couple of warnings with casts.
author
Richard Sharpe
<sharpe@samba.org>
Thu, 13 Nov 2003 17:27:21 +0000
(17:27 +0000)
committer
Richard Sharpe
<sharpe@samba.org>
Thu, 13 Nov 2003 17:27:21 +0000
(17:27 +0000)
(This used to be commit
58d7a51c5762a444aae6a795a3703269134423d7
)
source3/lib/charcnv.c
patch
|
blob
|
history
diff --git
a/source3/lib/charcnv.c
b/source3/lib/charcnv.c
index 9d15c6daa028b16fcd2c46488de83bd0d986b0d5..0a6a1fc75d6b42cf28508c1f3cdce2a83fe8ac29 100644
(file)
--- 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";