chiark / gitweb /
rules: remove redundant MODE="0664" from lp rules
[elogind.git] / udev / udevadm-trigger.c
index 3cb07dda9abc7c987ab89fb98d25815385913339..d31b4fbd8d7490b147c127c1a58fcbc2f6a054cb 100644 (file)
@@ -122,13 +122,13 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
                goto exit;
        }
 
-       while (1) {
+       for (;;) {
                int option;
                const char *key;
                const char *val;
                char buf[UTIL_PATH_SIZE];
 
-               option = getopt_long(argc, argv, "vng:o:t:hcp:s:S:a:A:y:", options, NULL);
+               option = getopt_long(argc, argv, "vng:o:t:hc:p:s:S:a:A:y:", options, NULL);
                if (option == -1)
                        break;
 
@@ -199,6 +199,7 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
                               "  --help\n\n");
                        goto exit;
                default:
+                       rc = 1;
                        goto exit;
                }
        }