From 1a13b09894ea8f6424cb904c83a4cd6214040e89 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 29 Aug 2007 13:56:52 +0000 Subject: r24782: Fix C++ warnings (This used to be commit f7e8df81ef9e1deadb1251e5e5959e90a4432f40) --- source3/libsmb/dsgetdcname.c | 7 ++++--- 1 file 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); } -- cgit