diff options
author | antoine <antoine@FreeBSD.org> | 2008-05-10 18:39:20 +0000 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2008-05-10 18:39:20 +0000 |
commit | 051789fb4a61c92a9309a5fa101d0de8d036fe0e (patch) | |
tree | dc2fbf2b6aa5ebfe4d389116ba0c65b01884b04c /lib/libc/stdio/fdopen.c | |
parent | 5a1745ad485c042c27ea1fde6589433706cf7333 (diff) | |
download | FreeBSD-src-051789fb4a61c92a9309a5fa101d0de8d036fe0e.zip FreeBSD-src-051789fb4a61c92a9309a5fa101d0de8d036fe0e.tar.gz |
Remove useless call to getdtablesize(2) in fdopen(3) and its useless
variable nofile.
PR: 123109
Submitted by: Christoph Mallon
Approved by: rwatson (mentor)
MFC after: 1 month
Diffstat (limited to 'lib/libc/stdio/fdopen.c')
-rw-r--r-- | lib/libc/stdio/fdopen.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/stdio/fdopen.c b/lib/libc/stdio/fdopen.c index 072d322..26e2cd7 100644 --- a/lib/libc/stdio/fdopen.c +++ b/lib/libc/stdio/fdopen.c @@ -52,12 +52,8 @@ fdopen(fd, mode) const char *mode; { FILE *fp; - static int nofile; int flags, oflags, fdflags, tmp; - if (nofile == 0) - nofile = getdtablesize(); - /* * File descriptors are a full int, but _file is only a short. * If we get a valid file descriptor that is greater than |