diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-12 21:47:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-02-13 00:56:13 +0100 |
commit | 641906e9366891e0ad3e6e38b7396a427678c4cf (patch) | |
tree | 47f90e01b79c50ab0839f0a0a10a8fae81dd9a25 /src/libudev | |
parent | 8d6167101696a28b7ac61b48fd2c1920564c4e90 (diff) |
use strneq instead of strncmp
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev-enumerate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-enumerate.c b/src/libudev/libudev-enumerate.c index 2c1f7ab4ac..5ccaabdc6c 100644 --- a/src/libudev/libudev-enumerate.c +++ b/src/libudev/libudev-enumerate.c @@ -309,7 +309,7 @@ _public_ struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enume } if (move_later && - strncmp(entry->syspath, move_later->syspath, move_later_prefix) != 0) { + !strneq(entry->syspath, move_later->syspath, move_later_prefix)) { udev_list_entry_add(&udev_enumerate->devices_list, move_later->syspath, NULL); move_later = NULL; |