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 Brodin 2008-05-10 18:39:20 +00:00
parent 933dad75e3
commit 27522528ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178921

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