chiark / gitweb /
udevadm: fix short options in getopt()
authorYin Kangkai <kangkai.yin@intel.com>
Wed, 28 Jul 2010 04:56:13 +0000 (06:56 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 28 Jul 2010 04:56:13 +0000 (06:56 +0200)
udev/udevadm-control.c
udev/udevadm-info.c
udev/udevadm-trigger.c

index 1f8008a..8b90829 100644 (file)
@@ -71,7 +71,7 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
                int i;
                char *endp;
 
-               option = getopt_long(argc, argv, "l:sSRp:m:M:h", options, NULL);
+               option = getopt_long(argc, argv, "l:sSRp:m:h", options, NULL);
                if (option == -1)
                        break;
 
index 14baa6a..9bd60c7 100644 (file)
@@ -242,7 +242,7 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
                int option;
                struct stat statbuf;
 
-               option = getopt_long(argc, argv, "aed:n:p:q:rxPVh", options, NULL);
+               option = getopt_long(argc, argv, "aed:n:p:q:rxP:Vh", options, NULL);
                if (option == -1)
                        break;
 
index 481e9cf..c32e0b4 100644 (file)
@@ -128,7 +128,7 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
                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;