Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.sbin/rpcbind Pullup 1.2 [fvdl]:



details:   https://anonhg.NetBSD.org/src/rev/43926b2b2974
branches:  netbsd-1-5
changeset: 490004:43926b2b2974
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Oct 30 22:28:38 2000 +0000

description:
Pullup 1.2 [fvdl]:
Make showmount -e work on lp64be. From Matt Green. While at it, also
fix another occurence of passing &int to xdr_long.

diffstat:

 usr.sbin/rpcbind/pmap_svc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r ec80bbf04dea -r 43926b2b2974 usr.sbin/rpcbind/pmap_svc.c
--- a/usr.sbin/rpcbind/pmap_svc.c       Mon Oct 30 22:27:19 2000 +0000
+++ b/usr.sbin/rpcbind/pmap_svc.c       Mon Oct 30 22:28:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_svc.c,v 1.1 2000/06/02 23:15:41 fvdl Exp $        */
+/*     $NetBSD: pmap_svc.c,v 1.1.2.1 2000/10/30 22:28:38 tv Exp $      */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -170,7 +170,7 @@
 {
        struct pmap reg;
        RPCB rpcbreg;
-       int ans;
+       long ans;
        struct sockaddr_in *who;
        struct sockcred *sc;
        char uidbuf[32];
@@ -263,6 +263,7 @@
 pmapproc_getport(struct svc_req *rqstp, SVCXPRT *xprt)
 {
        struct pmap reg;
+       long lport;
        int port = 0;
        struct pmaplist *fnd;
 #ifdef RPCBIND_DEBUG
@@ -319,7 +320,8 @@
                }
        }
 sendreply:
-       if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&port)) &&
+       lport = port;
+       if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) &&
                        debugging) {
                (void) fprintf(stderr, "portmap: svc_sendreply\n");
                if (doabort) {



Home | Main Index | Thread Index | Old Index