summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-06 15:33:31 +0000
committerderaadt <deraadt@openbsd.org>1996-12-06 15:33:31 +0000
commitfbff6f92be27dc2cbec51dd5df0ce5a511cf1904 (patch)
treeaca17ec9bdb1bc87639a9b5d54b330c0c3cde142
parentplease linux people (why am i doing this?? i need a life) (diff)
downloadwireguard-openbsd-fbff6f92be27dc2cbec51dd5df0ce5a511cf1904.tar.xz
wireguard-openbsd-fbff6f92be27dc2cbec51dd5df0ce5a511cf1904.zip
memset
-rw-r--r--libexec/telnetd/utility.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c
index ee7695b3496..e6746badd9f 100644
--- a/libexec/telnetd/utility.c
+++ b/libexec/telnetd/utility.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utility.c,v 1.4 1996/12/06 15:26:28 deraadt Exp $ */
+/* $OpenBSD: utility.c,v 1.5 1996/12/06 15:33:31 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.4 1996/12/06 15:26:28 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: utility.c,v 1.5 1996/12/06 15:33:31 deraadt Exp $";
#endif
#endif /* not lint */
@@ -102,7 +102,7 @@ stilloob(s)
do {
FD_ZERO(&excepts);
FD_SET(s, &excepts);
- bzero(&timeout, sizeof timeout);
+ memset((char *)&timeout, 0, sizeof timeout);
value = select(s+1, (fd_set *)0, (fd_set *)0, &excepts, &timeout);
} while ((value == -1) && (errno == EINTR));