mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-07 10:48:07 +02:00
test: replace a strncmp call with strneq
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a952acf1c2
commit
bd4f129a2a
1 changed files with 3 additions and 3 deletions
|
|
@ -393,9 +393,9 @@ litest_reload_udev_rules(void)
|
||||||
static int
|
static int
|
||||||
litest_udev_rule_filter(const struct dirent *entry)
|
litest_udev_rule_filter(const struct dirent *entry)
|
||||||
{
|
{
|
||||||
return strncmp(entry->d_name,
|
return strneq(entry->d_name,
|
||||||
UDEV_RULE_PREFIX,
|
UDEV_RULE_PREFIX,
|
||||||
strlen(UDEV_RULE_PREFIX)) == 0;
|
strlen(UDEV_RULE_PREFIX));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue