diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-08-22 19:05:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:31 -0500 |
commit | 4b7139242b1b8f3e270d4d7640ed206e0a6c6b26 (patch) | |
tree | 2ac9915da1ad3479bc51b1a8068c3b301d1e4e5f /source4 | |
parent | 0e5f94131dfd3c6db78f6236a872a0669b3e60b7 (diff) | |
download | samba-4b7139242b1b8f3e270d4d7640ed206e0a6c6b26.tar.gz samba-4b7139242b1b8f3e270d4d7640ed206e0a6c6b26.tar.bz2 samba-4b7139242b1b8f3e270d4d7640ed206e0a6c6b26.zip |
r17716: make casts explicit and remove compiler warnings
metze
(This used to be commit 43f030e71e50f7846d539e3952afc70fdc3daa58)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/charset/iconv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/lib/charset/iconv.c b/source4/lib/charset/iconv.c index df590444e5..28f102a4a0 100644 --- a/source4/lib/charset/iconv.c +++ b/source4/lib/charset/iconv.c @@ -563,15 +563,15 @@ static size_t utf8_pull(void *cd, const char **inbuf, size_t *inbytesleft, *inbytesleft = in_left; *outbytesleft = out_left; - *inbuf = c; - *outbuf = uc; + *inbuf = (const char *)c; + *outbuf = (char *)uc; return 0; error: *inbytesleft = in_left; *outbytesleft = out_left; - *inbuf = c; - *outbuf = uc; + *inbuf = (const char *)c; + *outbuf = (char *)uc; return -1; } @@ -676,16 +676,16 @@ static size_t utf8_push(void *cd, const char **inbuf, size_t *inbytesleft, *inbytesleft = in_left; *outbytesleft = out_left; - *inbuf = uc; - *outbuf = c; + *inbuf = (const char *)uc; + *outbuf = (char *)c; return 0; error: *inbytesleft = in_left; *outbytesleft = out_left; - *inbuf = uc; - *outbuf = c; + *inbuf = (const char *)uc; + *outbuf = (char *)c; return -1; } |