]> granicus.if.org Git - strace/blobdiff - tests/ioctl_evdev.c
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / ioctl_evdev.c
index 6cbc09feb77b159d2b51cae8d10104d2d4d60706..9d16cecf0877febd26f437572e3b2b738de13dfc 100644 (file)
@@ -67,9 +67,11 @@ print_ffe_common(const struct ff_effect *const ffe, const char *const type_str)
 # endif /* VERBOSE */
 }
 
-# define TEST_NULL_ARG(cmd) \
-       ioctl(-1, cmd, 0); \
-       printf("ioctl(-1, %s, NULL) = -1 EBADF (%m)\n", #cmd)
+# define TEST_NULL_ARG(cmd)                                            \
+       do {                                                            \
+               ioctl(-1, cmd, 0);                                      \
+               printf("ioctl(-1, %s, NULL) = -1 EBADF (%m)\n", #cmd);  \
+       } while (0)
 
 int
 main(void)