chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libudev: add missing 'global' to symbol export
[elogind.git]
/
src
/
libudev
/
libudev-monitor.c
diff --git
a/src/libudev/libudev-monitor.c
b/src/libudev/libudev-monitor.c
index b02ea8808cf949a41de9caca803dba7e7b859f01..0212792552f5523097058ef248d42a7ef82d720d 100644
(file)
--- a/
src/libudev/libudev-monitor.c
+++ b/
src/libudev/libudev-monitor.c
@@
-115,9
+115,9
@@
struct udev_monitor *udev_monitor_new_from_netlink_fd(struct udev *udev, const c
if (name == NULL)
group = UDEV_MONITOR_NONE;
if (name == NULL)
group = UDEV_MONITOR_NONE;
- else if (str
cmp(name, "udev") == 0
)
+ else if (str
eq(name, "udev")
)
group = UDEV_MONITOR_UDEV;
group = UDEV_MONITOR_UDEV;
- else if (str
cmp(name, "kernel") == 0
)
+ else if (str
eq(name, "kernel")
)
group = UDEV_MONITOR_KERNEL;
else
return NULL;
group = UDEV_MONITOR_KERNEL;
else
return NULL;
@@
-467,7
+467,7
@@
static int passes_filter(struct udev_monitor *udev_monitor, struct udev_device *
const char *devtype;
const char *ddevtype;
const char *devtype;
const char *ddevtype;
- if (
strcmp(dsubsys, subsys) != 0
)
+ if (
!streq(dsubsys, subsys)
)
continue;
devtype = udev_list_entry_get_value(list_entry);
continue;
devtype = udev_list_entry_get_value(list_entry);
@@
-476,7
+476,7
@@
static int passes_filter(struct udev_monitor *udev_monitor, struct udev_device *
ddevtype = udev_device_get_devtype(udev_device);
if (ddevtype == NULL)
continue;
ddevtype = udev_device_get_devtype(udev_device);
if (ddevtype == NULL)
continue;
- if (str
cmp(ddevtype, devtype) == 0
)
+ if (str
eq(ddevtype, devtype)
)
goto tag;
}
return 0;
goto tag;
}
return 0;