summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/nftw.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/nftw.c')
-rw-r--r--lib/libc/gen/nftw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gen/nftw.c b/lib/libc/gen/nftw.c
index 43110c1..e14d09e 100644
--- a/lib/libc/gen/nftw.c
+++ b/lib/libc/gen/nftw.c
@@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$");
#include <errno.h>
#include <fts.h>
#include <ftw.h>
-#include <limits.h>
int
nftw(const char *path, int (*fn)(const char *, const struct stat *, int,
@@ -47,7 +46,7 @@ nftw(const char *path, int (*fn)(const char *, const struct stat *, int,
int error = 0, ftsflags, fnflag, postorder, sverrno;
/* XXX - nfds is currently unused */
- if (nfds < 1 || nfds > OPEN_MAX) {
+ if (nfds < 1) {
errno = EINVAL;
return (-1);
}
OpenPOWER on IntegriCloud