summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-06-01 14:49:03 -0700
committerJeremy Allison <jra@samba.org>2011-06-01 23:53:07 +0200
commitdb46a9d6348869794c0c0cf5d6c7079cdc334426 (patch)
tree665587a5d50a484064a546768b3bc1f6eccf19b6 /librpc
parentb08bd96dc0919ae1194f1269c01a78194d674e9c (diff)
downloadsamba-db46a9d6348869794c0c0cf5d6c7079cdc334426.tar.gz
Fix type mixing warnings.
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/ndr_string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_string.c b/librpc/ndr/ndr_string.c
index cf4d972072a..4510a71082f 100644
--- a/librpc/ndr/ndr_string.c
+++ b/librpc/ndr/ndr_string.c
@@ -147,7 +147,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_string(struct ndr_pull *ndr, int ndr_flags,
} else {
if (!do_convert) {
as = talloc_strndup(ndr->current_mem_ctx,
- ndr->data + ndr->offset,
+ (char *)ndr->data + ndr->offset,
conv_src_len);
if (!as) {
return ndr_pull_error(ndr, NDR_ERR_ALLOC,
@@ -231,7 +231,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_string(struct ndr_push *ndr, int ndr_flags,
if (!do_convert) {
d_len = s_len;
- dest = talloc_strndup(ndr, s, s_len);
+ dest = (uint8_t *)talloc_strndup(ndr, s, s_len);
} else if (!convert_string_talloc(ndr, CH_UNIX, chset, s, s_len,
(void **)(void *)&dest, &d_len))
{