From 163c0365ffbd9321d686e8c301c36ea50c98df2f Mon Sep 17 00:00:00 2001 From: Yin Kangkai Date: Wed, 28 Jul 2010 06:56:13 +0200 Subject: [PATCH] udevadm: fix short options in getopt() --- udev/udevadm-control.c | 2 +- udev/udevadm-info.c | 2 +- udev/udevadm-trigger.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5