]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chrt: make --sched-* short options to require an argument
authorSami Kerola <kerolasa@iki.fi>
Sun, 3 Apr 2016 08:35:27 +0000 (09:35 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Apr 2016 08:26:03 +0000 (10:26 +0200)
These options are expecting an argument, and the long options struct already
required them.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
schedutils/chrt.c

index 363d6e1df3aff3c6be81be80a669ab388b8a9e3c..64a58584ff993944229818d0a44eb1e1da6332dc 100644 (file)
@@ -399,7 +399,7 @@ int main(int argc, char **argv)
        textdomain(PACKAGE);
        atexit(close_stdout);
 
-       while((c = getopt_long(argc, argv, "+abdDfiphmoPTrRvV", longopts, NULL)) != -1)
+       while((c = getopt_long(argc, argv, "+abdD:fiphmoP:T:rRvV", longopts, NULL)) != -1)
        {
                int ret = EXIT_FAILURE;