summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-02-13 18:13:22 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-02-13 18:14:20 +0100
commit090be8653471e1abe3f1cdd32eaad0fbd65f85cd (patch)
tree760849764326e78d458ff7019ac8b3f2d88245d8 /src/udev/udevd.c
parentb05105f0a80bcf2f2d18e9e33f740d7d04fca633 (diff)
use streq instead of strcmp
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 9f184621ae..088a89f470 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -499,7 +499,7 @@ static bool is_devpath_busy(struct event *event)
return true;
/* check our old name */
- if (event->devpath_old != NULL && strcmp(loop_event->devpath, event->devpath_old) == 0) {
+ if (event->devpath_old != NULL && streq(loop_event->devpath, event->devpath_old)) {
event->delaying_seqnum = loop_event->seqnum;
return true;
}
@@ -1117,11 +1117,11 @@ int main(int argc, char *argv[])
udev_set_log_priority(udev, LOG_DEBUG);
break;
case 'N':
- if (strcmp (optarg, "early") == 0) {
+ if (streq(optarg, "early")) {
resolve_names = 1;
- } else if (strcmp (optarg, "late") == 0) {
+ } else if (streq(optarg, "late")) {
resolve_names = 0;
- } else if (strcmp (optarg, "never") == 0) {
+ } else if (streq(optarg, "never")) {
resolve_names = -1;
} else {
fprintf(stderr, "resolve-names must be early, late or never\n");