diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-08-25 09:09:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:22 -0500 |
commit | aca1e774f729f0662bf220b9468cd9e4dab8be73 (patch) | |
tree | b9215d9084b299e88331a81a2e2b7c32eea745ea | |
parent | 275efb936fdd2e69b5b64e9ddeec66cbeb46f227 (diff) | |
download | samba-aca1e774f729f0662bf220b9468cd9e4dab8be73.tar.gz samba-aca1e774f729f0662bf220b9468cd9e4dab8be73.tar.bz2 samba-aca1e774f729f0662bf220b9468cd9e4dab8be73.zip |
r2060: fix compiler warning
metze
(This used to be commit dde5442b75ba169856a52a45588e2702d198b31d)
-rw-r--r-- | source4/lib/iconv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/iconv.c b/source4/lib/iconv.c index cb861a7bb8..4cca6d56d2 100644 --- a/source4/lib/iconv.c +++ b/source4/lib/iconv.c @@ -54,7 +54,7 @@ static size_t ucs2hex_push(void *,const char **, size_t *, char **, size_t *); static size_t iconv_copy (void *,const char **, size_t *, char **, size_t *); static size_t iconv_swab (void *,const char **, size_t *, char **, size_t *); -static struct charset_functions builtin_functions[] = { +static const struct charset_functions const builtin_functions[] = { {"UCS-2LE", iconv_copy, iconv_copy}, {"UCS-2BE", iconv_swab, iconv_swab}, {"UTF8", utf8_pull, utf8_push}, @@ -65,9 +65,9 @@ static struct charset_functions builtin_functions[] = { static struct charset_functions *charsets = NULL; -static NTSTATUS charset_register_backend(void *_funcs) +static NTSTATUS charset_register_backend(const void *_funcs) { - struct charset_functions *funcs = (struct charset_functions *)_funcs; + struct charset_functions *funcs = memdup(_funcs,sizeof(struct charset_functions)); struct charset_functions *c = charsets; /* Check whether we already have this charset... */ |