From: Yin Kangkai Date: Wed, 28 Jul 2010 04:56:13 +0000 (+0200) Subject: udevadm: fix short options in getopt() X-Git-Tag: 174~401 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=163c0365ffbd9321d686e8c301c36ea50c98df2f;p=systemd udevadm: fix short options in getopt() --- diff --git a/udev/udevadm-control.c b/udev/udevadm-control.c index 1f8008ab..8b908292 100644 --- a/udev/udevadm-control.c +++ b/udev/udevadm-control.c @@ -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; diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index 14baa6ac..9bd60c72 100644 --- a/udev/udevadm-info.c +++ b/udev/udevadm-info.c @@ -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; diff --git a/udev/udevadm-trigger.c b/udev/udevadm-trigger.c index 481e9cf1..c32e0b4e 100644 --- a/udev/udevadm-trigger.c +++ b/udev/udevadm-trigger.c @@ -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;