diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-07-30 16:36:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:25 -0500 |
commit | e23781b3b304d1e69ad80af5ae9c0ed8d02cf996 (patch) | |
tree | d3a6eb0774d9ce907152e886c4c920d24ac2d715 /source3/rpc_client | |
parent | 5a5deade6e4634aad561139f39337c9a960c0b80 (diff) | |
download | samba-e23781b3b304d1e69ad80af5ae9c0ed8d02cf996.tar.gz samba-e23781b3b304d1e69ad80af5ae9c0ed8d02cf996.tar.bz2 samba-e23781b3b304d1e69ad80af5ae9c0ed8d02cf996.zip |
r17316: More C++ warnings -- 456 left
(This used to be commit 1e4ee728df7eeafc1b4d533240acb032f73b4f5c)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_echo.c | 2 | ||||
-rw-r--r-- | source3/rpc_client/cli_spoolss.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_echo.c b/source3/rpc_client/cli_echo.c index 9818fad79b..b76b6e285f 100644 --- a/source3/rpc_client/cli_echo.c +++ b/source3/rpc_client/cli_echo.c @@ -78,7 +78,7 @@ NTSTATUS rpccli_echo_data(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, result = True; if (out_data) { - *out_data = TALLOC(mem_ctx, size); + *out_data = (char *)TALLOC(mem_ctx, size); if (!*out_data) { return NT_STATUS_NO_MEMORY; } diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index d6d4417da3..75c617c944 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -1609,7 +1609,7 @@ WERROR rpccli_spoolss_getprinterdata(struct rpc_pipe_client *cli, TALLOC_CTX *me /* Return output parameters */ - value->data_p = TALLOC_MEMDUP(mem_ctx, out.data, out.needed); + value->data_p = (uint8 *)TALLOC_MEMDUP(mem_ctx, out.data, out.needed); value->type = out.type; value->size = out.size; @@ -1662,7 +1662,7 @@ WERROR rpccli_spoolss_getprinterdataex(struct rpc_pipe_client *cli, TALLOC_CTX * /* Return output parameters */ - value->data_p = TALLOC_MEMDUP(mem_ctx, out.data, out.needed); + value->data_p = (uint8 *)TALLOC_MEMDUP(mem_ctx, out.data, out.needed); value->type = out.type; value->size = out.needed; @@ -1758,7 +1758,8 @@ WERROR rpccli_spoolss_enumprinterdata(struct rpc_pipe_client *cli, TALLOC_CTX *m if (value) { rpcstr_pull(value->valuename, out.value, sizeof(value->valuename), -1, STR_TERMINATE); - value->data_p = TALLOC_MEMDUP(mem_ctx, out.data, out.realdatasize); + value->data_p = (uint8 *)TALLOC_MEMDUP(mem_ctx, out.data, + out.realdatasize); value->type = out.type; value->size = out.realdatasize; } |