diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-08-29 13:56:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:20 -0500 |
commit | 1a13b09894ea8f6424cb904c83a4cd6214040e89 (patch) | |
tree | 7116922243722791a82d17bc62d1762d0cccdf05 /source3/libsmb | |
parent | 24fc1d6dd5fce0fc02813d9bb68c12b7539de413 (diff) | |
download | samba-1a13b09894ea8f6424cb904c83a4cd6214040e89.tar.gz samba-1a13b09894ea8f6424cb904c83a4cd6214040e89.tar.bz2 samba-1a13b09894ea8f6424cb904c83a4cd6214040e89.zip |
r24782: Fix C++ warnings
(This used to be commit f7e8df81ef9e1deadb1251e5e5959e90a4432f40)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/dsgetdcname.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index 3d8d57d157..90e6d49274 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/libsmb/dsgetdcname.c @@ -235,7 +235,8 @@ static NTSTATUS unpack_dsdcinfo(TALLOC_CTX *mem_ctx, memcpy(&guid_flat.info, guid_buf, guid_len); smb_uuid_unpack(guid_flat, &guid); - info->domain_guid = talloc_memdup(mem_ctx, &guid, sizeof(guid)); + info->domain_guid = (struct GUID *)talloc_memdup( + mem_ctx, &guid, sizeof(guid)); if (!info->domain_guid) { goto failed; } @@ -694,8 +695,8 @@ static NTSTATUS make_domain_controller_info(TALLOC_CTX *mem_ctx, info->domain_controller_address_type = domain_controller_address_type; if (domain_guid) { - info->domain_guid = talloc_memdup(mem_ctx, domain_guid, - sizeof(*domain_guid)); + info->domain_guid = (struct GUID *)talloc_memdup( + mem_ctx, domain_guid, sizeof(*domain_guid)); NT_STATUS_HAVE_NO_MEMORY(info->domain_guid); } |