From dea2bd5b9b1fb99329f644b58682ca3f38e7570c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 18 Sep 2011 01:27:53 +0200 Subject: s3: Fix two c++ warnings --- source3/rpc_client/util_lsarpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/rpc_client/util_lsarpc.c b/source3/rpc_client/util_lsarpc.c index 169c10bb5d..d67144b18f 100644 --- a/source3/rpc_client/util_lsarpc.c +++ b/source3/rpc_client/util_lsarpc.c @@ -50,7 +50,7 @@ static NTSTATUS ai_array_2_trust_domain_info_buffer(TALLOC_CTX *mem_ctx, status = NT_STATUS_INVALID_PARAMETER; goto fail; } - b[i].data.data = talloc_memdup(b, + b[i].data.data = (uint8_t *)talloc_memdup(b, &ai->array[i].AuthInfo.nt4owf.password.hash, 16); if (b[i].data.data == NULL) { @@ -76,7 +76,7 @@ static NTSTATUS ai_array_2_trust_domain_info_buffer(TALLOC_CTX *mem_ctx, goto fail; } b[i].data.size = 4; - b[i].data.data = talloc_memdup(b, + b[i].data.data = (uint8_t *)talloc_memdup(b, &ai->array[i].AuthInfo.version.version, 4); if (b[i].data.data == NULL) { status = NT_STATUS_NO_MEMORY; -- cgit