summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-01 11:18:05 +0200
committerStefan Metzmacher <metze@samba.org>2010-08-01 11:18:05 +0200
commitb99a02a7d4b21e37b9ff61171311ca1b143e2b14 (patch)
tree0e8e03263c62163f93e0a7120b74a0b2953cb3aa /source4
parentc7ba3c4dcf77e51434783e5da2b505bf6c7a14c4 (diff)
downloadsamba-b99a02a7d4b21e37b9ff61171311ca1b143e2b14.tar.gz
samba-b99a02a7d4b21e37b9ff61171311ca1b143e2b14.tar.bz2
samba-b99a02a7d4b21e37b9ff61171311ca1b143e2b14.zip
s4:torture/rpc/winreg: fix "strict aliasing" compiler warnings
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/winreg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 572b6876f1..84139af63c 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -2525,21 +2525,21 @@ static bool test_OpenHive(struct torture_context *tctx,
break;
case HKEY_CURRENT_USER:
torture_assert_ntstatus_ok(tctx,
- dcerpc_winreg_OpenHKCU_r(b, tctx, (struct winreg_OpenHKCU *)&r),
+ dcerpc_winreg_OpenHKCU_r(b, tctx, (struct winreg_OpenHKCU *)(void *)&r),
"failed to open HKCU");
torture_assert_werr_ok(tctx, r.out.result,
"failed to open HKCU");
break;
case HKEY_USERS:
torture_assert_ntstatus_ok(tctx,
- dcerpc_winreg_OpenHKU_r(b, tctx, (struct winreg_OpenHKU *)&r),
+ dcerpc_winreg_OpenHKU_r(b, tctx, (struct winreg_OpenHKU *)(void *)&r),
"failed to open HKU");
torture_assert_werr_ok(tctx, r.out.result,
"failed to open HKU");
break;
case HKEY_CLASSES_ROOT:
torture_assert_ntstatus_ok(tctx,
- dcerpc_winreg_OpenHKCR_r(b, tctx, (struct winreg_OpenHKCR *)&r),
+ dcerpc_winreg_OpenHKCR_r(b, tctx, (struct winreg_OpenHKCR *)(void *)&r),
"failed to open HKCR");
torture_assert_werr_ok(tctx, r.out.result,
"failed to open HKCR");