diff options
author | Volker Lendecke <vl@sernet.de> | 2007-11-09 14:23:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-11-09 15:17:35 +0100 |
commit | 0fb6a301d97c69d467e73c57954ebfa73adec813 (patch) | |
tree | 1a54a6cdabc4a1b8f8d38a0b8179a2fbf82b20c6 /source3 | |
parent | 8a2e7a52c0ec6b2e5262816f61708589f29bdaeb (diff) | |
download | samba-0fb6a301d97c69d467e73c57954ebfa73adec813.tar.gz samba-0fb6a301d97c69d467e73c57954ebfa73adec813.tar.bz2 samba-0fb6a301d97c69d467e73c57954ebfa73adec813.zip |
Fix some warnings
(This used to be commit df42038f8801ca65ed7d44f7ae26640e2d840dba)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/ndr/ndr_string.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/source3/librpc/ndr/ndr_string.c b/source3/librpc/ndr/ndr_string.c index 375cb00eb4..7446ea2ebb 100644 --- a/source3/librpc/ndr/ndr_string.c +++ b/source3/librpc/ndr/ndr_string.c @@ -85,7 +85,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, (len2 + c_len_term)*byte_mul, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -122,7 +123,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, (len1 + c_len_term)*byte_mul, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -160,7 +162,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, (len1 + c_len_term)*byte_mul, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -194,7 +197,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, (len3 + c_len_term)*byte_mul, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -226,7 +230,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, len3, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -246,7 +251,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, len1, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -263,7 +269,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, len1*byte_mul, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -288,7 +295,8 @@ _PUBLIC_ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const cha chset, CH_UNIX, ndr->data+ndr->offset, len1, - (void **)&as, false); + (void **)(void *)&as, + false); if (ret == -1) { return ndr_pull_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); @@ -349,7 +357,8 @@ _PUBLIC_ NTSTATUS ndr_push_string(struct ndr_push *ndr, int ndr_flags, const cha LIBNDR_FLAG_STR_FIXLEN32))) { s_len++; } - d_len = convert_string_talloc(ndr, CH_UNIX, chset, s, s_len, (void **)&dest, false); + d_len = convert_string_talloc(ndr, CH_UNIX, chset, s, s_len, + (void **)(void *)&dest, false); if (d_len == -1) { return ndr_push_error(ndr, NDR_ERR_CHARCNV, "Bad character conversion"); |