Source-Changes-HG archive

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

[src/trunk]: src/libexec/rpc.rstatd Use rpcb_unset, not pmap_unset.



details:   https://anonhg.NetBSD.org/src/rev/bebbccb6d544
branches:  trunk
changeset: 487153:bebbccb6d544
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sat Jun 03 18:48:24 2000 +0000

description:
Use rpcb_unset, not pmap_unset.

diffstat:

 libexec/rpc.rstatd/rstatd.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r e75adc8ba18d -r bebbccb6d544 libexec/rpc.rstatd/rstatd.c
--- a/libexec/rpc.rstatd/rstatd.c       Sat Jun 03 18:47:28 2000 +0000
+++ b/libexec/rpc.rstatd/rstatd.c       Sat Jun 03 18:48:24 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rstatd.c,v 1.10 2000/06/02 23:20:19 fvdl Exp $ */
+/*     $NetBSD: rstatd.c,v 1.11 2000/06/03 18:48:24 fvdl Exp $ */
 
 /*-
  * Copyright (c) 1993, John Brezak
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rstatd.c,v 1.10 2000/06/02 23:20:19 fvdl Exp $");
+__RCSID("$NetBSD: rstatd.c,v 1.11 2000/06/03 18:48:24 fvdl Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -60,9 +60,9 @@
 cleanup(dummy)
        int dummy;
 {
-        (void) pmap_unset(RSTATPROG, RSTATVERS_TIME);
-        (void) pmap_unset(RSTATPROG, RSTATVERS_SWTCH);
-        (void) pmap_unset(RSTATPROG, RSTATVERS_ORIG);
+        (void) rpcb_unset(RSTATPROG, RSTATVERS_TIME, NULL);
+        (void) rpcb_unset(RSTATPROG, RSTATVERS_SWTCH, NULL);
+        (void) rpcb_unset(RSTATPROG, RSTATVERS_ORIG, NULL);
         exit(0);
 }
 
@@ -90,9 +90,9 @@
         if (!from_inetd) {
                 /* daemon(0, 0); */
 
-                (void)pmap_unset(RSTATPROG, RSTATVERS_TIME);
-                (void)pmap_unset(RSTATPROG, RSTATVERS_SWTCH);
-                (void)pmap_unset(RSTATPROG, RSTATVERS_ORIG);
+                (void)rpcb_unset(RSTATPROG, RSTATVERS_TIME, NULL);
+                (void)rpcb_unset(RSTATPROG, RSTATVERS_SWTCH, NULL);
+                (void)rpcb_unset(RSTATPROG, RSTATVERS_ORIG, NULL);
 
                (void) signal(SIGINT, cleanup);
                (void) signal(SIGTERM, cleanup);



Home | Main Index | Thread Index | Old Index