s4:torture/rpc/winreg: fix "strict aliasing" compiler warnings
authorStefan Metzmacher <metze@samba.org>
Sun, 1 Aug 2010 09:18:05 +0000 (11:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 1 Aug 2010 09:18:05 +0000 (11:18 +0200)
metze

source4/torture/rpc/winreg.c

index 572b6876f111b6323a205e11403195b0db4d76c5..84139af63c186640cae55dea82a2f6b004eb8ac6 100644 (file)
@@ -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");