From 9705dab835c618af26d86c59b49b59543aff2755 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 7 Apr 2011 16:54:12 +0200 Subject: s3:net rpc trust: fix two C++ implicit void * cast warnings Autobuild-User: Michael Adam Autobuild-Date: Thu Apr 7 17:52:28 CEST 2011 on sn-devel-104 --- source3/utils/net_rpc_trust.c | 7 +++++-- 1 file 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) { -- cgit