Minor changes for HP compiler, some cleanup

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@340 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-03-27 11:42:44 +00:00
parent ee103d9654
commit bd174d9fe5
3 changed files with 10 additions and 10 deletions

View File

@@ -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) {

View File

@@ -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 */
}
}
}

View File

@@ -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) {