X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Freadahead.c;h=647eb312159338471cd67369642016282874c491;hb=bfc3d82256c45fb1e6e04ca85fac8a65b34b72a1;hp=49cd7fd09da42a67b52856c39ad51c2682bc4f13;hpb=9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e;p=oweals%2Fbusybox.git diff --git a/miscutils/readahead.c b/miscutils/readahead.c index 49cd7fd09..647eb3121 100644 --- a/miscutils/readahead.c +++ b/miscutils/readahead.c @@ -10,8 +10,9 @@ * Licensed under GPLv2 or later, see file License in this tarball for details. */ -#include "busybox.h" +#include "libbb.h" +int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int readahead_main(int argc, char **argv) { FILE *f; @@ -20,7 +21,7 @@ int readahead_main(int argc, char **argv) if (argc == 1) bb_show_usage(); while (*++argv) { - if ((f = bb_wfopen(*argv, "r")) != NULL) { + if ((f = fopen_or_warn(*argv, "r")) != NULL) { int r, fd=fileno(f); r = readahead(fd, 0, fdlength(fd));