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:
@@ -87,7 +87,7 @@ stilloob()
|
|||||||
do {
|
do {
|
||||||
FD_ZERO(&excepts);
|
FD_ZERO(&excepts);
|
||||||
FD_SET(net, &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));
|
} while ((value == -1) && (errno == EINTR));
|
||||||
|
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
|
@@ -859,19 +859,19 @@ printsub(direction, pointer, length)
|
|||||||
void
|
void
|
||||||
EmptyTerminal()
|
EmptyTerminal()
|
||||||
{
|
{
|
||||||
fd_set o;
|
fd_set outs;
|
||||||
|
|
||||||
FD_ZERO(&o);
|
FD_ZERO(&outs);
|
||||||
|
|
||||||
if (TTYBYTES() == 0) {
|
if (TTYBYTES() == 0) {
|
||||||
FD_SET(tout, &o);
|
FD_SET(tout, &outs);
|
||||||
(void) select(tout+1, (fd_set *) 0, &o, (fd_set *) 0,
|
(void) select(tout+1, 0, &outs, 0,
|
||||||
(struct timeval *) 0); /* wait for TTLOWAT */
|
(struct timeval *) 0); /* wait for TTLOWAT */
|
||||||
} else {
|
} else {
|
||||||
while (TTYBYTES()) {
|
while (TTYBYTES()) {
|
||||||
(void) ttyflush(0);
|
(void) ttyflush(0);
|
||||||
FD_SET(tout, &o);
|
FD_SET(tout, &outs);
|
||||||
(void) select(tout+1, (fd_set *) 0, &o, (fd_set *) 0,
|
(void) select(tout+1, 0, &outs, 0,
|
||||||
(struct timeval *) 0); /* wait for TTLOWAT */
|
(struct timeval *) 0); /* wait for TTLOWAT */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -97,7 +97,7 @@ stilloob(int s)
|
|||||||
do {
|
do {
|
||||||
FD_ZERO(&excepts);
|
FD_ZERO(&excepts);
|
||||||
FD_SET(s, &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));
|
} while ((value == -1) && (errno == EINTR));
|
||||||
|
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
|
Reference in New Issue
Block a user