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

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

Log Message:
Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 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.90 src/usr.sbin/ypbind/ypbind.c:1.91
--- src/usr.sbin/ypbind/ypbind.c:1.90	Tue Aug 30 17:06:22 2011
+++ src/usr.sbin/ypbind/ypbind.c	Tue Jun 10 17:18:02 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ypbind.c,v 1.90 2011/08/30 17:06:22 plunky Exp $	*/
+/*	$NetBSD: ypbind.c,v 1.91 2014/06/10 17:18:02 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.90 2011/08/30 17:06:22 plunky Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.91 2014/06/10 17:18:02 dholland Exp $");
 #endif
 
 #include <sys/types.h>
@@ -102,8 +102,6 @@ struct domain {
 
 #define BUFSIZE		1400
 
-static char *domainname;
-
 static struct domain *domains;
 static int check;
 
@@ -1173,6 +1171,7 @@ main(int argc, char *argv[])
 	fd_set fdsr;
 	int width, lockfd;
 	int evil = 0;
+	char *domainname;
 
 	setprogname(argv[0]);
 	(void)yp_get_default_domain(&domainname);

Reply via email to