summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-07-07 14:56:14 +0200
committerGünther Deschner <gd@samba.org>2010-07-07 14:56:14 +0200
commitf706d1a96e0cc80000c6b87c90becfcbfe26d314 (patch)
tree9c860e1903991351c9f3ac146d814b5a7ef3f1b4
parentca460113ea28ca82429845c2b3977989175f8ada (diff)
downloadsamba-f706d1a96e0cc80000c6b87c90becfcbfe26d314.tar.gz
samba-f706d1a96e0cc80000c6b87c90becfcbfe26d314.tar.bz2
samba-f706d1a96e0cc80000c6b87c90becfcbfe26d314.zip
s3-rpc_parse: fix c++ buildwarning in prs_init().
Guenther
-rw-r--r--source3/rpc_parse/parse_prs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c
index af1cc3d5b2..c460f1fbca 100644
--- a/source3/rpc_parse/parse_prs.c
+++ b/source3/rpc_parse/parse_prs.c
@@ -112,7 +112,7 @@ bool prs_init(prs_struct *ps, uint32 size, TALLOC_CTX *ctx, bool io)
if (size != 0) {
ps->buffer_size = size;
- ps->data_p = talloc_zero_size(ps->mem_ctx, size);
+ ps->data_p = (char *)talloc_zero_size(ps->mem_ctx, size);
if(ps->data_p == NULL) {
DEBUG(0,("prs_init: talloc fail for %u bytes.\n", (unsigned int)size));
return False;