diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-13 18:13:22 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-13 18:14:20 +0100 |
commit | 090be8653471e1abe3f1cdd32eaad0fbd65f85cd (patch) | |
tree | 760849764326e78d458ff7019ac8b3f2d88245d8 /src/udev/udevadm-trigger.c | |
parent | b05105f0a80bcf2f2d18e9e33f740d7d04fca633 (diff) |
use streq instead of strcmp
Diffstat (limited to 'src/udev/udevadm-trigger.c')
-rw-r--r-- | src/udev/udevadm-trigger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevadm-trigger.c b/src/udev/udevadm-trigger.c index 4d96a786c3..9624c66fba 100644 --- a/src/udev/udevadm-trigger.c +++ b/src/udev/udevadm-trigger.c @@ -122,9 +122,9 @@ static int adm_trigger(struct udev *udev, int argc, char *argv[]) dry_run = 1; break; case 't': - if (strcmp(optarg, "devices") == 0) { + if (streq(optarg, "devices")) { device_type = TYPE_DEVICES; - } else if (strcmp(optarg, "subsystems") == 0) { + } else if (streq(optarg, "subsystems")) { device_type = TYPE_SUBSYSTEMS; } else { log_error("unknown type --type=%s\n", optarg); |