summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-09-18 01:27:53 +0200
committerVolker Lendecke <vlendec@samba.org>2011-09-18 17:24:22 +0200
commitdea2bd5b9b1fb99329f644b58682ca3f38e7570c (patch)
tree525cb77d031d311a9ef9cce508b9fb80e65f8ce0 /source3
parent6589f1712fbca0db5aa5011dc9330dddf5897233 (diff)
downloadsamba-dea2bd5b9b1fb99329f644b58682ca3f38e7570c.tar.gz
samba-dea2bd5b9b1fb99329f644b58682ca3f38e7570c.tar.bz2
samba-dea2bd5b9b1fb99329f644b58682ca3f38e7570c.zip
s3: Fix two c++ warnings
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/util_lsarpc.c4
1 files changed, 2 insertions, 2 deletions
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;