summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-07-05 21:14:29 +0000
committerderaadt <deraadt@openbsd.org>1996-07-05 21:14:29 +0000
commitbd448d8a0c03332302a0928be8cccaff99a69459 (patch)
treec6dc0e2a2694d297d3a278fd19fc1fc743fb8a8f
parentrelease temporary binding if M_PREPEND fails; netbsd pr#2605; tegge@idt.unit.no; improved by me (diff)
downloadwireguard-openbsd-bd448d8a0c03332302a0928be8cccaff99a69459.tar.xz
wireguard-openbsd-bd448d8a0c03332302a0928be8cccaff99a69459.zip
commit check finish after work done
-rw-r--r--usr.sbin/ypbind/ypbind.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 6097c107116..f7cb1df7f18 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.9 1996/07/01 00:49:56 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.10 1996/07/05 21:14:29 deraadt Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@ -34,7 +34,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.9 1996/07/01 00:49:56 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.10 1996/07/05 21:14:29 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -545,8 +545,6 @@ checkwork()
struct _dom_binding *ypdb;
time_t t;
- check = 0;
-
time(&t);
for (ypdb = ypbindlist; ypdb; ypdb = ypdb->dom_pnext) {
if (ypdb->dom_check_t < t) {
@@ -558,6 +556,7 @@ checkwork()
ypdb->dom_check_t = t + 5;
}
}
+ check = 0;
}
ping(ypdb)