Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ypbind Remove two entirely unused members of struct...



details:   https://anonhg.NetBSD.org/src/rev/8e31b399d39d
branches:  trunk
changeset: 765315:8e31b399d39d
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue May 24 07:02:08 2011 +0000

description:
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>.

diffstat:

 usr.sbin/ypbind/ypbind.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (44 lines):

diff -r 15b7bdc6e505 -r 8e31b399d39d usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c  Tue May 24 07:01:53 2011 +0000
+++ b/usr.sbin/ypbind/ypbind.c  Tue May 24 07:02:08 2011 +0000
@@ -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 <deraadt%fsa.ca@localhost>
@@ -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;



Home | Main Index | Thread Index | Old Index