Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ypbind While there are times it's appropriate to ca...
details: https://anonhg.NetBSD.org/src/rev/f5cfda0982b8
branches: trunk
changeset: 329810:f5cfda0982b8
user: dholland <dholland%NetBSD.org@localhost>
date: Tue Jun 10 17:18:45 2014 +0000
description:
While there are times it's appropriate to call a state variable
"evil", this isn't one of them. Since the logic involved is to wait
until the default domain binds before backgrounding, call the variable
"started" instead.
diffstat:
usr.sbin/ypbind/ypbind.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 4f6955d7b09f -r f5cfda0982b8 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c Tue Jun 10 17:18:18 2014 +0000
+++ b/usr.sbin/ypbind/ypbind.c Tue Jun 10 17:18:45 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypbind.c,v 1.92 2014/06/10 17:18:18 dholland Exp $ */
+/* $NetBSD: ypbind.c,v 1.93 2014/06/10 17:18:45 dholland Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.92 2014/06/10 17:18:18 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.93 2014/06/10 17:18:45 dholland Exp $");
#endif
#include <sys/types.h>
@@ -1186,7 +1186,7 @@
struct timeval tv;
fd_set fdsr;
int width, lockfd;
- int evil = 0;
+ int started = 0;
char *domainname;
setprogname(argv[0]);
@@ -1271,8 +1271,8 @@
break;
}
- if (!evil && domains->dom_alive) {
- evil = 1;
+ if (!started && domains->dom_alive) {
+ started = 1;
#ifdef DEBUG
if (!debug)
#endif
Home |
Main Index |
Thread Index |
Old Index