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:
parent
5a1745ad48
commit
051789fb4a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user