From fb8a5b040a2157716a61afa14c67ca4cd53528bb Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 18 Apr 2018 10:52:32 +1000 Subject: [PATCH] test: replace a strcmp with streq Signed-off-by: Peter Hutterer --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }