diff options
Diffstat (limited to 'miscutils/readahead.c')
-rw-r--r-- | miscutils/readahead.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/miscutils/readahead.c b/miscutils/readahead.c index fb71ce8..f3b21a2 100644 --- a/miscutils/readahead.c +++ b/miscutils/readahead.c @@ -13,11 +13,13 @@ #include "libbb.h" int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int readahead_main(int argc, char **argv) +int readahead_main(int argc UNUSED_PARAM, char **argv) { int retval = EXIT_SUCCESS; - if (argc == 1) bb_show_usage(); + if (!argv[1]) { + bb_show_usage(); + } while (*++argv) { int fd = open_or_warn(*argv, O_RDONLY); |