chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udev: use startswith() and streq()
[elogind.git]
/
src
/
libudev
/
libudev-device-private.c
diff --git
a/src/libudev/libudev-device-private.c
b/src/libudev/libudev-device-private.c
index c58cde2ff6112be645bacb7ff1a473211369e959..a4dfa9bd3956719ddb894fab947c28aa0dce3821 100644
(file)
--- a/
src/libudev/libudev-device-private.c
+++ b/
src/libudev/libudev-device-private.c
@@
-60,7
+60,7
@@
int udev_device_tag_index(struct udev_device *dev, struct udev_device *dev_old,
udev_list_entry_foreach(list_entry_current, udev_device_get_tags_list_entry(dev)) {
const char *tag = udev_list_entry_get_name(list_entry_current);
- if (str
cmp(tag, tag_old) == 0
) {
+ if (str
eq(tag, tag_old)
) {
found = true;
break;
}