summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-04-07 16:54:12 +0200
committerMichael Adam <obnox@samba.org>2011-04-07 17:52:28 +0200
commit9705dab835c618af26d86c59b49b59543aff2755 (patch)
tree18c3adad9e4be504e05c84a8c437588f44121abd /source3
parent32d816d59b34947bf1eb2d5e7e482587b815d773 (diff)
downloadsamba-9705dab835c618af26d86c59b49b59543aff2755.tar.gz
samba-9705dab835c618af26d86c59b49b59543aff2755.tar.bz2
samba-9705dab835c618af26d86c59b49b59543aff2755.zip
s3:net rpc trust: fix two C++ implicit void * cast warnings
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Apr 7 17:52:28 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_trust.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_trust.c b/source3/utils/net_rpc_trust.c
index 654b0f158f..da0a7cca67 100644
--- a/source3/utils/net_rpc_trust.c
+++ b/source3/utils/net_rpc_trust.c
@@ -519,7 +519,9 @@ static int rpc_trust_common(struct net_context *net_ctx, int argc,
goto done;
}
- authinfo.auth_blob.data = talloc_memdup(mem_ctx, auth_blob.data,
+ authinfo.auth_blob.data = (uint8_t *)talloc_memdup(
+ mem_ctx,
+ auth_blob.data,
auth_blob.length);
if (authinfo.auth_blob.data == NULL) {
goto done;
@@ -544,7 +546,8 @@ static int rpc_trust_common(struct net_context *net_ctx, int argc,
if (other_net_ctx != NULL) {
talloc_free(authinfo.auth_blob.data);
- authinfo.auth_blob.data = talloc_memdup(mem_ctx,
+ authinfo.auth_blob.data = (uint8_t *)talloc_memdup(
+ mem_ctx,
auth_blob.data,
auth_blob.length);
if (authinfo.auth_blob.data == NULL) {