use streq instead of strcmp

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2013-02-13 18:14:20 +01:00
parent b05105f0a8
commit 090be86534
22 changed files with 66 additions and 66 deletions
+2 -2
View File
@@ -140,12 +140,12 @@ int main(int argc, char *argv[])
if (udev_device_get_devnode(dev) != NULL) {
mode_t mode = 0600;
if (strcmp(udev_device_get_subsystem(dev), "block") == 0)
if (streq(udev_device_get_subsystem(dev), "block"))
mode |= S_IFBLK;
else
mode |= S_IFCHR;
if (strcmp(action, "remove") != 0) {
if (!streq(action, "remove")) {
mkdir_parents_label(udev_device_get_devnode(dev), 0755);
mknod(udev_device_get_devnode(dev), mode, udev_device_get_devnum(dev));
} else {