summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-08-25 09:36:17 +0000
committerdfr <dfr@FreeBSD.org>2008-08-25 09:36:17 +0000
commitb9dfa1bea1499464580f487113b117b5667d7fd4 (patch)
tree51c57e484cae6ff601f3778205fe95d0c2c6f631 /sys/rpc
parent1a7416c9dd48f4af524dd469a388323e0fe1faf2 (diff)
downloadFreeBSD-src-b9dfa1bea1499464580f487113b117b5667d7fd4.zip
FreeBSD-src-b9dfa1bea1499464580f487113b117b5667d7fd4.tar.gz
Rename RPC's 'struct pmap' to 'struct portmap' to avoid confusing it with
the other 'struct pmap'. Pointed out by: kmacy MFC after: 2 weeks
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/pmap_prot.h12
-rw-r--r--sys/rpc/rpcb_prot.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/rpc/pmap_prot.h b/sys/rpc/pmap_prot.h
index 366832a..42277e8 100644
--- a/sys/rpc/pmap_prot.h
+++ b/sys/rpc/pmap_prot.h
@@ -44,15 +44,15 @@
* PMAPPROC_NULL() returns ()
* takes nothing, returns nothing
*
- * PMAPPROC_SET(struct pmap) returns (bool_t)
+ * PMAPPROC_SET(struct portmap) returns (bool_t)
* TRUE is success, FALSE is failure. Registers the tuple
* [prog, vers, prot, port].
*
- * PMAPPROC_UNSET(struct pmap) returns (bool_t)
+ * PMAPPROC_UNSET(struct portmap) returns (bool_t)
* TRUE is success, FALSE is failure. Un-registers pair
* [prog, vers]. prot and port are ignored.
*
- * PMAPPROC_GETPORT(struct pmap) returns (long unsigned).
+ * PMAPPROC_GETPORT(struct portmap) returns (long unsigned).
* 0 is failure. Otherwise returns the port number where the pair
* [prog, vers] is registered. It may lie!
*
@@ -86,7 +86,7 @@
#define PMAPPROC_DUMP ((u_long)4)
#define PMAPPROC_CALLIT ((u_long)5)
-struct pmap {
+struct portmap {
long unsigned pm_prog;
long unsigned pm_vers;
long unsigned pm_prot;
@@ -94,12 +94,12 @@ struct pmap {
};
struct pmaplist {
- struct pmap pml_map;
+ struct portmap pml_map;
struct pmaplist *pml_next;
};
__BEGIN_DECLS
-extern bool_t xdr_pmap(XDR *, struct pmap *);
+extern bool_t xdr_portmap(XDR *, struct portmap *);
extern bool_t xdr_pmaplist(XDR *, struct pmaplist **);
extern bool_t xdr_pmaplist_ptr(XDR *, struct pmaplist *);
__END_DECLS
diff --git a/sys/rpc/rpcb_prot.c b/sys/rpc/rpcb_prot.c
index 06a659e..be76571 100644
--- a/sys/rpc/rpcb_prot.c
+++ b/sys/rpc/rpcb_prot.c
@@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$");
#include <rpc/rpcb_prot.h>
bool_t
-xdr_pmap(XDR *xdrs, struct pmap *regs)
+xdr_portmap(XDR *xdrs, struct portmap *regs)
{
if (xdr_u_long(xdrs, &regs->pm_prog) &&
OpenPOWER on IntegriCloud