From: deraadt Date: Fri, 6 Dec 1996 15:26:28 +0000 (+0000) Subject: please linux people (why am i doing this?? i need a life) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=284fc1ba5e239a82a5c098f7e78bb3c3fa1b9563;p=openbsd please linux people (why am i doing this?? i need a life) --- 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));