summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-26 20:16:26 +0100
committerJeremy Allison <jra@samba.org>2014-11-25 07:25:45 +0100
commit7a0b8a9a6e785de7024ba873414bbd656e161750 (patch)
tree426862bd5fe86d00f3011e79d205f6d15090beb4 /source3
parentfe40ee148a2861105cf6763263db65cf96bd22d0 (diff)
downloadsamba-7a0b8a9a6e785de7024ba873414bbd656e161750.tar.gz
s3:registry: use discard_const_p() to avoid const warning in smb_iconv() define
I'm wondering why we have this in reg_parse_internal.h at all! But for now just fix warnings... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_parse_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_parse_internal.h b/source3/registry/reg_parse_internal.h
index bd364a5851f..1440d5549f9 100644
--- a/source3/registry/reg_parse_internal.h
+++ b/source3/registry/reg_parse_internal.h
@@ -38,7 +38,7 @@ struct cbuf;
#if defined USE_NATIVE_ICONV && defined HAVE_NATIVE_ICONV
# define smb_iconv_t iconv_t
# define smb_iconv(CD, IPTR, ILEN, OPTR, OLEN) \
- iconv(CD, (char**)(IPTR), ILEN, OPTR, OLEN)
+ iconv(CD, discard_const_p(char*, (IPTR)), ILEN, OPTR, OLEN)
# define smb_iconv_open iconv_open
# define smb_iconv_close iconv_close
#endif