projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a952acf
)
test: replace a strncmp call with strneq
author
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 5 Jun 2015 00:39:30 +0000
(10:39 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 5 Jun 2015 01:31:33 +0000
(11:31 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c
patch
|
blob
|
history
diff --git
a/test/litest.c
b/test/litest.c
index d457a272f233d18004e051ae3faadb2252a20720..c9c17d0b5c04326436a352367a2cc1a8500774c8 100644
(file)
--- a/
test/litest.c
+++ b/
test/litest.c
@@
-393,9
+393,9
@@
litest_reload_udev_rules(void)
static int
litest_udev_rule_filter(const struct dirent *entry)
{
- return strn
cmp
(entry->d_name,
-
UDEV_RULE_PREFIX,
-
strlen(UDEV_RULE_PREFIX)) == 0
;
+ return strn
eq
(entry->d_name,
+ UDEV_RULE_PREFIX,
+
strlen(UDEV_RULE_PREFIX))
;
}
static void