diff options
Diffstat (limited to 'util-linux/chrt.c')
-rw-r--r-- | util-linux/chrt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util-linux/chrt.c b/util-linux/chrt.c index 4bc8b6cfa..2712ea3e3 100644 --- a/util-linux/chrt.c +++ b/util-linux/chrt.c | |||
@@ -12,7 +12,7 @@ | |||
12 | //config: manipulate real-time attributes of a process. | 12 | //config: manipulate real-time attributes of a process. |
13 | //config: This requires sched_{g,s}etparam support in your libc. | 13 | //config: This requires sched_{g,s}etparam support in your libc. |
14 | 14 | ||
15 | //applet:IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP)) | 15 | //applet:IF_CHRT(APPLET_NOEXEC(chrt, chrt, BB_DIR_USR_BIN, BB_SUID_DROP, chrt)) |
16 | 16 | ||
17 | //kbuild:lib-$(CONFIG_CHRT) += chrt.o | 17 | //kbuild:lib-$(CONFIG_CHRT) += chrt.o |
18 | 18 | ||
@@ -77,8 +77,7 @@ int chrt_main(int argc UNUSED_PARAM, char **argv) | |||
77 | int policy = SCHED_RR; | 77 | int policy = SCHED_RR; |
78 | 78 | ||
79 | /* only one policy accepted */ | 79 | /* only one policy accepted */ |
80 | opt_complementary = "r--fo:f--ro:o--rf"; | 80 | opt = getopt32(argv, "^+" "mprfo" "\0" "r--fo:f--ro:o--rf"); |
81 | opt = getopt32(argv, "+mprfo"); | ||
82 | if (opt & OPT_m) { /* print min/max and exit */ | 81 | if (opt & OPT_m) { /* print min/max and exit */ |
83 | show_min_max(SCHED_FIFO); | 82 | show_min_max(SCHED_FIFO); |
84 | show_min_max(SCHED_RR); | 83 | show_min_max(SCHED_RR); |