diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-04-18 10:52:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-04-18 14:36:31 +1000 |
commit | fb8a5b040a2157716a61afa14c67ca4cd53528bb (patch) | |
tree | 296b1e4c8bb196bea3cc3522f421ab5f13c9df22 /test | |
parent | 358acb574774b36ebc404b34b18545b2fe5adf3c (diff) |
test: replace a strcmp with streq
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/litest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/litest.c b/test/litest.c index 03e19a81..f0127794 100644 --- a/test/litest.c +++ b/test/litest.c @@ -2792,7 +2792,7 @@ litest_create_uinput_device_from_description(const char *name, udev_device = udev_monitor_receive_device(udev_monitor); litest_assert_notnull(udev_device); udev_action = udev_device_get_action(udev_device); - if (strcmp(udev_action, "add") != 0) { + if (!streq(udev_action, "add")) { udev_device_unref(udev_device); continue; } |