Module Name: src
Committed By: dholland
Date: Tue May 24 06:58:55 UTC 2011
Modified Files:
src/usr.sbin/ypbind: ypbind.c
Log Message:
xid2ypdb() -> domain_find()
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/usr.sbin/ypbind/ypbind.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/ypbind/ypbind.c
diff -u src/usr.sbin/ypbind/ypbind.c:1.75 src/usr.sbin/ypbind/ypbind.c:1.76
--- src/usr.sbin/ypbind/ypbind.c:1.75 Tue May 24 06:58:42 2011
+++ src/usr.sbin/ypbind/ypbind.c Tue May 24 06:58:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ypbind.c,v 1.75 2011/05/24 06:58:42 dholland Exp $ */
+/* $NetBSD: ypbind.c,v 1.76 2011/05/24 06:58:54 dholland Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <[email protected]>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.75 2011/05/24 06:58:42 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.76 2011/05/24 06:58:54 dholland Exp $");
#endif
#include <sys/types.h>
@@ -192,7 +192,7 @@
// struct domain
static struct domain *
-xid2ypdb(uint32_t xid)
+domain_find(uint32_t xid)
{
struct domain *ypdb;
@@ -208,7 +208,7 @@
uint32_t tmp_xid;
tmp_xid = ((uint32_t)(unsigned long)ypdb) & 0xffffffff;
- while (xid2ypdb(tmp_xid) != NULL)
+ while (domain_find(tmp_xid) != NULL)
tmp_xid++;
return tmp_xid;
@@ -874,7 +874,7 @@
if ((msg.rm_reply.rp_stat == MSG_ACCEPTED) &&
(msg.acpted_rply.ar_stat == SUCCESS)) {
raddr.sin_port = htons((uint16_t)rmtcr_port);
- ypdb = xid2ypdb(msg.rm_xid);
+ ypdb = domain_find(msg.rm_xid);
if (ypdb != NULL)
rpc_received(ypdb->dom_domain, &raddr, 0);
}
@@ -928,7 +928,7 @@
if (xdr_replymsg(&xdr, &msg)) {
if ((msg.rm_reply.rp_stat == MSG_ACCEPTED) &&
(msg.acpted_rply.ar_stat == SUCCESS)) {
- ypdb = xid2ypdb(msg.rm_xid);
+ ypdb = domain_find(msg.rm_xid);
if (ypdb != NULL)
rpc_received(ypdb->dom_domain, &raddr, 0);
}