diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-01 12:45:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:28 -0500 |
commit | 467ec2a32bac08468855a5a28a7d6e25b26904d5 (patch) | |
tree | bc04c0e4a90ad694699d78cfbac7b6671813aade /source3/libmsrpc | |
parent | fbd04d65c56c36bec287f6c4ffe84ea79b048fa7 (diff) | |
download | samba-467ec2a32bac08468855a5a28a7d6e25b26904d5.tar.gz samba-467ec2a32bac08468855a5a28a7d6e25b26904d5.tar.bz2 samba-467ec2a32bac08468855a5a28a7d6e25b26904d5.zip |
r17363: Some C++ warnings
(This used to be commit fd82f185a2e0f94bfb75f4eee072556ad94bf27d)
Diffstat (limited to 'source3/libmsrpc')
-rw-r--r-- | source3/libmsrpc/cac_samr.c | 3 | ||||
-rw-r--r-- | source3/libmsrpc/libmsrpc_internal.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source3/libmsrpc/cac_samr.c b/source3/libmsrpc/cac_samr.c index a29ee7a41e..0567188307 100644 --- a/source3/libmsrpc/cac_samr.c +++ b/source3/libmsrpc/cac_samr.c @@ -156,7 +156,8 @@ DOM_SID *cac_get_domain_sid(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, uint32 de if(!fs.out.domain_sid) return NULL; - sid = talloc_memdup(mem_ctx, &(fs.out.domain_sid->sid), sizeof(DOM_SID)); + sid = (DOM_SID *)talloc_memdup(mem_ctx, &(fs.out.domain_sid->sid), + sizeof(DOM_SID)); if(!sid) { hnd->status = NT_STATUS_NO_MEMORY; diff --git a/source3/libmsrpc/libmsrpc_internal.c b/source3/libmsrpc/libmsrpc_internal.c index a097bc181c..a1c37aaac4 100644 --- a/source3/libmsrpc/libmsrpc_internal.c +++ b/source3/libmsrpc/libmsrpc_internal.c @@ -252,7 +252,8 @@ REG_VALUE_DATA *cac_MakeRegValueData(TALLOC_CTX *mem_ctx, uint32 data_type, REGV data->reg_binary.data_length = size; - data->reg_binary.data = talloc_memdup(mem_ctx, buf.buffer, size); + data->reg_binary.data = (uint8 *)talloc_memdup(mem_ctx, buf.buffer, + size); if(!data->reg_binary.data) { TALLOC_FREE(data); errno = ENOMEM; @@ -499,7 +500,8 @@ CacUserInfo *cac_MakeUserInfo(TALLOC_CTX *mem_ctx, SAM_USERINFO_CTR *ctr) { memcpy(info->nt_password, id21->nt_pwd, 8); memcpy(info->lm_password, id21->lm_pwd, 8); - info->logon_hours = talloc_memdup(mem_ctx, &(id21->logon_hrs), sizeof(LOGON_HRS)); + info->logon_hours = (LOGON_HRS *)talloc_memdup(mem_ctx, &(id21->logon_hrs), + sizeof(LOGON_HRS)); if(!info->logon_hours) return NULL; |