]> granicus.if.org Git - strace/commitdiff
tests: fix build with recent kernel headers
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 25 Oct 2018 13:36:54 +0000 (13:36 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 25 Oct 2018 13:36:54 +0000 (13:36 +0000)
Linux commit v4.19-rc2-5-g2ecefa0a15fd0ef88b9cd5d15ceb813008136431
changed the definition of struct keyctl_dh_params in an incompatible
way again.  Workaround this issue by using designated initializers.

* tests/keyctl.c (main): Use designated initializers for
struct keyctl_dh_params.

tests/keyctl.c

index 881f24b3a3e360acabee7f5f247c561a0063c821..e53cdc41275adc9202666e481757383451f98d0b 100644 (file)
@@ -312,7 +312,10 @@ main(void)
        static const char *bogus_key3_str = "-557785390";
 
        static const struct keyctl_dh_params kcdhp_data = {
-               KEY_SPEC_GROUP_KEYRING, 1234567890, 3141592653U };
+               .private = KEY_SPEC_GROUP_KEYRING,
+               .prime = 1234567890,
+               .base = 3141592653U
+       };
        static const char *kcdhp_str = "{private="
 #if XLAT_RAW || XLAT_VERBOSE
                "-6"