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
This commit is contained in:
antoine 2008-05-10 18:39:20 +00:00
parent 5a1745ad48
commit 051789fb4a

View File

@ -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