chiark / gitweb /
use streq instead of strcmp
[elogind.git] / src / udev / udevadm.c
index 53419ffa62e481cac1e530dd552d0412875c2aab..e14b3ca27c0248f9c063a38f13e65f1e872a7846 100644 (file)
@@ -131,7 +131,7 @@ int main(int argc, char *argv[])
 
         if (command != NULL)
                 for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) {
-                        if (strcmp(udevadm_cmds[i]->name, command) == 0) {
+                        if (streq(udevadm_cmds[i]->name, command)) {
                                 argc -= optind;
                                 argv += optind;
                                 /* we need '0' here to reset the internal state */