projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
forgot about avn add... :(
[oweals/busybox.git]
/
miscutils
/
readahead.c
diff --git
a/miscutils/readahead.c
b/miscutils/readahead.c
index 8221bb4beb3b24d67dbe70974d74f1a6305d90bd..356c404511441d6e40de61b31d5fddd033941567 100644
(file)
--- a/
miscutils/readahead.c
+++ b/
miscutils/readahead.c
@@
-20,9
+20,9
@@
int readahead_main(int argc, char **argv)
if (argc == 1) bb_show_usage();
while (*++argv) {
- if ((f =
bb_wfope
n(*argv, "r")) != NULL) {
+ if ((f =
fopen_or_war
n(*argv, "r")) != NULL) {
int r, fd=fileno(f);
-
+
r = readahead(fd, 0, fdlength(fd));
fclose(f);
if (r >= 0) continue;