diff --git a/appl/telnet/telnet/network.c b/appl/telnet/telnet/network.c index 7efbd77b9..e36cfd41c 100644 --- a/appl/telnet/telnet/network.c +++ b/appl/telnet/telnet/network.c @@ -87,7 +87,7 @@ stilloob() do { FD_ZERO(&excepts); FD_SET(net, &excepts); - value = select(net+1, (fd_set *)0, (fd_set *)0, &excepts, &timeout); + value = select(net+1, 0, 0, &excepts, &timeout); } while ((value == -1) && (errno == EINTR)); if (value < 0) { diff --git a/appl/telnet/telnet/utilities.c b/appl/telnet/telnet/utilities.c index bed5f35e9..9da39df5c 100644 --- a/appl/telnet/telnet/utilities.c +++ b/appl/telnet/telnet/utilities.c @@ -859,20 +859,20 @@ printsub(direction, pointer, length) void EmptyTerminal() { - fd_set o; + fd_set outs; - FD_ZERO(&o); + FD_ZERO(&outs); if (TTYBYTES() == 0) { - FD_SET(tout, &o); - (void) select(tout+1, (fd_set *) 0, &o, (fd_set *) 0, - (struct timeval *) 0); /* wait for TTLOWAT */ + FD_SET(tout, &outs); + (void) select(tout+1, 0, &outs, 0, + (struct timeval *) 0); /* wait for TTLOWAT */ } else { while (TTYBYTES()) { (void) ttyflush(0); - FD_SET(tout, &o); - (void) select(tout+1, (fd_set *) 0, &o, (fd_set *) 0, - (struct timeval *) 0); /* wait for TTLOWAT */ + FD_SET(tout, &outs); + (void) select(tout+1, 0, &outs, 0, + (struct timeval *) 0); /* wait for TTLOWAT */ } } } diff --git a/appl/telnet/telnetd/utility.c b/appl/telnet/telnetd/utility.c index d4bd68324..9a99ae2d9 100644 --- a/appl/telnet/telnetd/utility.c +++ b/appl/telnet/telnetd/utility.c @@ -97,7 +97,7 @@ stilloob(int s) do { FD_ZERO(&excepts); FD_SET(s, &excepts); - value = select(s+1, (fd_set *)0, (fd_set *)0, &excepts, &timeout); + value = select(s+1, 0, 0, &excepts, &timeout); } while ((value == -1) && (errno == EINTR)); if (value < 0) {