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 fb71ce85f..f3b21a2fc 100644 --- a/miscutils/readahead.c +++ b/miscutils/readahead.c | |||
| @@ -13,11 +13,13 @@ | |||
| 13 | #include "libbb.h" | 13 | #include "libbb.h" |
| 14 | 14 | ||
| 15 | int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 15 | int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
| 16 | int readahead_main(int argc, char **argv) | 16 | int readahead_main(int argc UNUSED_PARAM, char **argv) |
| 17 | { | 17 | { |
| 18 | int retval = EXIT_SUCCESS; | 18 | int retval = EXIT_SUCCESS; |
| 19 | 19 | ||
| 20 | if (argc == 1) bb_show_usage(); | 20 | if (!argv[1]) { |
| 21 | bb_show_usage(); | ||
| 22 | } | ||
| 21 | 23 | ||
| 22 | while (*++argv) { | 24 | while (*++argv) { |
| 23 | int fd = open_or_warn(*argv, O_RDONLY); | 25 | int fd = open_or_warn(*argv, O_RDONLY); |
