svn commit: samba r2060 - branches/SAMBA_4_0/source/lib
metze at samba.org
metze at samba.org
Wed Aug 25 09:09:17 GMT 2004
Author: metze
Date: 2004-08-25 09:09:17 +0000 (Wed, 25 Aug 2004)
New Revision: 2060
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2060&nolog=1
Log:
fix compiler warning
metze
Modified:
branches/SAMBA_4_0/source/lib/iconv.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/iconv.c
===================================================================
--- branches/SAMBA_4_0/source/lib/iconv.c 2004-08-25 08:58:12 UTC (rev 2059)
+++ branches/SAMBA_4_0/source/lib/iconv.c 2004-08-25 09:09:17 UTC (rev 2060)
@@ -54,7 +54,7 @@
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 *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... */
More information about the samba-cvs
mailing list