aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ionice.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/ionice.c')
-rw-r--r--miscutils/ionice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/ionice.c b/miscutils/ionice.c
index 88d771c30..361c141b8 100644
--- a/miscutils/ionice.c
+++ b/miscutils/ionice.c
@@ -57,7 +57,7 @@ int ionice_main(int argc UNUSED_PARAM, char **argv)
57 /* '+': stop at first non-option */ 57 /* '+': stop at first non-option */
58 opt = getopt32(argv, "+n:c:p:", &pri, &ioclass, &pid); 58 opt = getopt32(argv, "+n:c:p:", &pri, &ioclass, &pid);
59 argv += optind; 59 argv += optind;
60 60
61 if (opt & OPT_c) { 61 if (opt & OPT_c) {
62 if (ioclass > 3) 62 if (ioclass > 3)
63 bb_error_msg_and_die("bad class %d", ioclass); 63 bb_error_msg_and_die("bad class %d", ioclass);
@@ -70,7 +70,7 @@ int ionice_main(int argc UNUSED_PARAM, char **argv)
70// pri = 7; 70// pri = 7;
71// } 71// }
72 } 72 }
73 73
74 if (!(opt & (OPT_n|OPT_c))) { 74 if (!(opt & (OPT_n|OPT_c))) {
75 if (!(opt & OPT_p) && *argv) 75 if (!(opt & OPT_p) && *argv)
76 pid = xatoi_u(*argv); 76 pid = xatoi_u(*argv);