From f706d1a96e0cc80000c6b87c90becfcbfe26d314 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 7 Jul 2010 14:56:14 +0200 Subject: s3-rpc_parse: fix c++ buildwarning in prs_init(). Guenther --- source3/rpc_parse/parse_prs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit