From bd174d9fe5b90ab269d0d04aa8894a7cfc3d43a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Groenvall?= Date: Wed, 27 Mar 1996 11:42:44 +0000 Subject: [PATCH] Minor changes for HP compiler, some cleanup git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@340 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnet/network.c | 2 +- appl/telnet/telnet/utilities.c | 16 ++++++++-------- appl/telnet/telnetd/utility.c | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) 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) {