Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/ypbind Merge a couple more minor improvements from ...



details:   https://anonhg.NetBSD.org/src/rev/15b7bdc6e505
branches:  trunk
changeset: 765314:15b7bdc6e505
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue May 24 07:01:53 2011 +0000

description:
Merge a couple more minor improvements from Wolfgang Stukenbrock's
patch in PR 43900.

diffstat:

 usr.sbin/ypbind/ypbind.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 302f2da1f517 -r 15b7bdc6e505 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c  Tue May 24 07:01:40 2011 +0000
+++ b/usr.sbin/ypbind/ypbind.c  Tue May 24 07:01:53 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ypbind.c,v 1.84 2011/05/24 07:01:40 dholland Exp $     */
+/*     $NetBSD: ypbind.c,v 1.85 2011/05/24 07:01:53 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.84 2011/05/24 07:01:40 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.85 2011/05/24 07:01:53 dholland Exp $");
 #endif
 
 #include <sys/types.h>
@@ -401,7 +401,6 @@
            sizeof(dom->dom_server_addr));
        /* recheck binding in 60 seconds */
        dom->dom_checktime = time(NULL) + 60;
-       dom->dom_vers = YPVERS;
        dom->dom_alive = 1;
 
        if (dom->dom_lockfd != -1)
@@ -559,7 +558,8 @@
        bindsin.sin_port = sd->ypsetdom_port;
        rpc_received(sd->ypsetdom_domain, &bindsin, 1, 1);
 
-       DPRINTF("ypset to %s succeeded\n", inet_ntoa(bindsin.sin_addr));
+       DPRINTF("ypset to %s for domain %s succeeded\n",
+               inet_ntoa(bindsin.sin_addr), sd->ypsetdom_domain);
        res = 1;
        return &res;
 }



Home | Main Index | Thread Index | Old Index