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-test.c | |
parent | b05105f0a80bcf2f2d18e9e33f740d7d04fca633 (diff) |
use streq instead of strcmp
Diffstat (limited to 'src/udev/udevadm-test.c')
-rw-r--r-- | src/udev/udevadm-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udevadm-test.c b/src/udev/udevadm-test.c index f22a2c32cc..df1409bff6 100644 --- a/src/udev/udevadm-test.c +++ b/src/udev/udevadm-test.c @@ -66,11 +66,11 @@ static int adm_test(struct udev *udev, int argc, char *argv[]) action = optarg; 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"); |