udevadm: fix short options in getopt()
This commit is contained in:
parent
efb27d6465
commit
163c0365ff
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue