diff options
Diffstat (limited to 'newlib/libc/posix/ftw.c')
-rw-r--r-- | newlib/libc/posix/ftw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/posix/ftw.c b/newlib/libc/posix/ftw.c index 79e6358..e3ca85c 100644 --- a/newlib/libc/posix/ftw.c +++ b/newlib/libc/posix/ftw.c @@ -30,7 +30,9 @@ int ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int /* The following cast assumes that calling a function with one * argument more than it needs behaves as expected. This is * actually undefined, but works on all real-world machines. */ - return nftw(path, (int (*)())fn, fd_limit, FTW_PHYS); + return nftw(path, + (int (*)(const char *, const struct stat *, int, struct FTW *))fn, + fd_limit, FTW_PHYS); } #endif /* ! HAVE_OPENDIR */ |