s3-rpc_parse: fix c++ buildwarning in prs_init().
authorGünther Deschner <gd@samba.org>
Wed, 7 Jul 2010 12:56:14 +0000 (14:56 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 7 Jul 2010 12:56:14 +0000 (14:56 +0200)
Guenther

source3/rpc_parse/parse_prs.c

index af1cc3d5b2054dd07698c13cc95b138976b30c5d..c460f1fbca5257c046a08146d2f6edebe12dc167 100644 (file)
@@ -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;