diff options
Diffstat (limited to 'tests-mx32/ioctl_evdev.c')
-rw-r--r-- | tests-mx32/ioctl_evdev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests-mx32/ioctl_evdev.c b/tests-mx32/ioctl_evdev.c index 6cbc09fe..9d16cecf 100644 --- a/tests-mx32/ioctl_evdev.c +++ b/tests-mx32/ioctl_evdev.c @@ -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) |