Module Name:    src
Committed By:   dholland
Date:           Tue May 24 07:02:08 UTC 2011

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

Log Message:
Remove two entirely unused members of struct domain (previously struct
_dom_binding). I guess these were there because it was cutpasted at
some point from struct dom_binding in <rpcsvc/yp_prot.h>.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 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.85 src/usr.sbin/ypbind/ypbind.c:1.86
--- src/usr.sbin/ypbind/ypbind.c:1.85	Tue May 24 07:01:53 2011
+++ src/usr.sbin/ypbind/ypbind.c	Tue May 24 07:02:08 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ypbind.c,v 1.85 2011/05/24 07:01:53 dholland Exp $	*/
+/*	$NetBSD: ypbind.c,v 1.86 2011/05/24 07:02:08 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.85 2011/05/24 07:01:53 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.86 2011/05/24 07:02:08 dholland Exp $");
 #endif
 
 #include <sys/types.h>
@@ -89,8 +89,6 @@
 
 	char dom_name[YPMAXDOMAIN + 1];
 	struct sockaddr_in dom_server_addr;
-	int dom_socket;
-	CLIENT *dom_client;
 	long dom_vers;
 	time_t dom_checktime;
 	time_t dom_asktime;
@@ -113,6 +111,7 @@
 
 static int allow_local_ypset = 0, allow_any_ypset = 0;
 static int insecure;
+
 static int rpcsock, pingsock;
 static struct rmtcallargs rmtca;
 static struct rmtcallres rmtcr;
@@ -228,8 +227,6 @@
 
 	(void)strlcpy(dom->dom_name, name, sizeof(dom->dom_name));
 	(void)memset(&dom->dom_server_addr, 0, sizeof(dom->dom_server_addr));
-	dom->dom_socket = -1;
-	dom->dom_client = NULL;
 	dom->dom_vers = YPVERS;
 	dom->dom_checktime = 0;
 	dom->dom_asktime = 0;

Reply via email to