diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-30 21:01:33 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2012-05-30 14:58:56 +0200 |
commit | 6f133c911f0fa0c75a01ccb02f2857887a56f5c4 (patch) | |
tree | cc2fd25708444d5135fd1737a6f28cca7d25b8fd | |
parent | 3e92bff13df47943d180bdef96f2a3d4815f8472 (diff) | |
download | samba-6f133c911f0fa0c75a01ccb02f2857887a56f5c4.tar.gz samba-6f133c911f0fa0c75a01ccb02f2857887a56f5c4.tar.bz2 samba-6f133c911f0fa0c75a01ccb02f2857887a56f5c4.zip |
librpc: Fix an incompatible pointer type warning
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r-- | librpc/ndr/ndr_dnsp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_dnsp.c b/librpc/ndr/ndr_dnsp.c index f7300c82f4..fcb623ad82 100644 --- a/librpc/ndr/ndr_dnsp.c +++ b/librpc/ndr/ndr_dnsp.c @@ -197,13 +197,15 @@ _PUBLIC_ void ndr_print_dnsp_string_list(struct ndr_print *ndr, const char *name _PUBLIC_ enum ndr_err_code ndr_pull_dnsp_string_list(struct ndr_pull *ndr, int ndr_flags, struct dnsp_string_list *list) { list->count = 0; - list->str = talloc_array(ndr->current_mem_ctx, char *, list->count); + list->str = talloc_array(ndr->current_mem_ctx, const char *, + list->count); if (! list->str) { return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_string_list"); } while (ndr->offset < ndr->data_size) { - list->str = talloc_realloc(ndr->current_mem_ctx, list->str, char *, list->count+1); + list->str = talloc_realloc(ndr->current_mem_ctx, list->str, + const char *, list->count+1); if (! list->str) { return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Failed to pull dnsp_string_list"); } |