diff options
Diffstat (limited to 'fd.c')
-rw-r--r-- | fd.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -88,8 +88,6 @@ void InitializeFD(void) { - int i; - enterprocedure("InitializeFD"); /* get the number of file descriptors the system will let us use */ #ifdef _SC_OPEN_MAX @@ -114,7 +112,7 @@ InitializeFD(void) } /* be sure all fd's are closed and marked not busy */ - for (i = 0; i < MaxFD; i++) { + for (int i = 0; i < MaxFD; i++) { /* 0, 1, 2 are special (stdin, stdout, stderr) */ if (i > 2) close(i); @@ -411,7 +409,6 @@ MainLoop(void) while (true) { fd_set rfds, wfds, xfds; short nfds; - short fd; /* wait for something */ @@ -472,7 +469,7 @@ MainLoop(void) } /* check each fd to see if it has input */ - for (fd = 0; fd <= HighestFD; fd++) { + for (short fd = 0; fd <= HighestFD; fd++) { /* check all returned fd's; this prevents starvation of later clients by earlier clients |