Module Name:    src
Committed By:   dholland
Date:           Tue Jun 10 17:18:45 UTC 2014

Modified Files:
        src/usr.sbin/ypbind: ypbind.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/usr.sbin/ypbind/ypbind.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/ypbind/ypbind.c
diff -u src/usr.sbin/ypbind/ypbind.c:1.92 src/usr.sbin/ypbind/ypbind.c:1.93
--- src/usr.sbin/ypbind/ypbind.c:1.92	Tue Jun 10 17:18:18 2014
+++ src/usr.sbin/ypbind/ypbind.c	Tue Jun 10 17:18:45 2014
@@ -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 <[email protected]>
@@ -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 @@ main(int argc, char *argv[])
 	struct timeval tv;
 	fd_set fdsr;
 	int width, lockfd;
-	int evil = 0;
+	int started = 0;
 	char *domainname;
 
 	setprogname(argv[0]);
@@ -1271,8 +1271,8 @@ main(int argc, char *argv[])
 			break;
 		}
 
-		if (!evil && domains->dom_alive) {
-			evil = 1;
+		if (!started && domains->dom_alive) {
+			started = 1;
 #ifdef DEBUG
 			if (!debug)
 #endif

Reply via email to