diff options
author | Volker Lendecke <vl@samba.org> | 2011-09-18 01:27:53 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-09-18 17:24:22 +0200 |
commit | dea2bd5b9b1fb99329f644b58682ca3f38e7570c (patch) | |
tree | 525cb77d031d311a9ef9cce508b9fb80e65f8ce0 /source3 | |
parent | 6589f1712fbca0db5aa5011dc9330dddf5897233 (diff) | |
download | samba-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.c | 4 |
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; |