diff options
-rw-r--r-- | fd.c | 4 | ||||
-rw-r--r-- | scope.c | 2 | ||||
-rw-r--r-- | scope.h | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -109,6 +109,10 @@ InitializeFD(void) if (FDD == NULL) { panic("Can't allocate memory for file descriptor table"); } + FDinfo = calloc(MaxFD, sizeof (struct fdinfo)); + if (FDD == NULL) { + panic("Can't allocate memory for file descriptor info table"); + } /* be sure all fd's are closed and marked not busy */ for (i = 0; i < MaxFD; i++) @@ -933,7 +933,7 @@ SetUpStdin (void) */ static long clientNumber = 0; -struct fdinfo FDinfo[StaticMaxFD]; +struct fdinfo *FDinfo; void SetUpPair( @@ -117,7 +117,7 @@ struct fdinfo Boolean writeblocked; }; -extern struct fdinfo FDinfo[StaticMaxFD]; +extern struct fdinfo *FDinfo; extern int littleEndian; extern char HandleSIGUSR1; extern char Leader[]; |