diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-06 15:26:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-06 15:26:29 +0000 |
commit | b97786f0433582ad3a0332ccd55dbdbe015b2c57 (patch) | |
tree | a8d60cb4184dc13a9667c939009a71f8de15d519 /libexec/telnetd | |
parent | 0065d0d6aacdabcb94a0092bd978f2aebdbc386f (diff) |
please linux people (why am i doing this?? i need a life)
Diffstat (limited to 'libexec/telnetd')
-rw-r--r-- | libexec/telnetd/utility.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index 6ff4ceeb3c2..ee7695b3496 100644 --- a/libexec/telnetd/utility.c +++ b/libexec/telnetd/utility.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utility.c,v 1.3 1996/09/27 02:48:52 deraadt Exp $ */ +/* $OpenBSD: utility.c,v 1.4 1996/12/06 15:26:28 deraadt Exp $ */ /* $NetBSD: utility.c,v 1.9 1996/02/28 20:38:29 thorpej Exp $ */ /* @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95"; static char rcsid[] = "$NetBSD: utility.c,v 1.9 1996/02/28 20:38:29 thorpej Exp $"; #else -static char rcsid[] = "$OpenBSD: utility.c,v 1.3 1996/09/27 02:48:52 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: utility.c,v 1.4 1996/12/06 15:26:28 deraadt Exp $"; #endif #endif /* not lint */ @@ -95,13 +95,14 @@ ttloop() stilloob(s) int s; /* socket number */ { - static struct timeval timeout = { 0 }; + struct timeval timeout; fd_set excepts; int value; do { FD_ZERO(&excepts); FD_SET(s, &excepts); + bzero(&timeout, sizeof timeout); value = select(s+1, (fd_set *)0, (fd_set *)0, &excepts, &timeout); } while ((value == -1) && (errno == EINTR)); |