diff options
Diffstat (limited to 'miscutils/ionice.c')
-rw-r--r-- | miscutils/ionice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/ionice.c b/miscutils/ionice.c index 52e51b908..6b791c491 100644 --- a/miscutils/ionice.c +++ b/miscutils/ionice.c | |||
@@ -73,7 +73,7 @@ int ionice_main(int argc UNUSED_PARAM, char **argv) | |||
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_positive(*argv); |
77 | 77 | ||
78 | pri = ioprio_get(IOPRIO_WHO_PROCESS, pid); | 78 | pri = ioprio_get(IOPRIO_WHO_PROCESS, pid); |
79 | if (pri == -1) | 79 | if (pri == -1) |