summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2002-09-16 21:39:42 +0000
committerfenner <fenner@FreeBSD.org>2002-09-16 21:39:42 +0000
commit0f0a53d15f0152d40095a01108f9cfb8027bd9b3 (patch)
tree24493d7a41c3582351f0aace1acacc024296483c /usr.sbin
parentc715b040b63356896fe4e33a3122937d15fdc800 (diff)
downloadFreeBSD-src-0f0a53d15f0152d40095a01108f9cfb8027bd9b3.zip
FreeBSD-src-0f0a53d15f0152d40095a01108f9cfb8027bd9b3.tar.gz
xids are u_int32_ts, which are not necessarily the same size as time_ts or
unsigned longs. This fixes "ypbind -S ... -m" on sparc64.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypbind/yp_ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypbind/yp_ping.c b/usr.sbin/ypbind/yp_ping.c
index 9e77d16..807e706 100644
--- a/usr.sbin/ypbind/yp_ping.c
+++ b/usr.sbin/ypbind/yp_ping.c
@@ -226,7 +226,7 @@ ypproc_domain_nonack_2_recv(domainname *argp, CLIENT *clnt)
struct ping_req {
struct sockaddr_in sin;
- unsigned long xid;
+ u_int32_t xid;
};
int
@@ -238,7 +238,7 @@ __yp_ping(struct in_addr *restricted_addrs, int cnt, char *dom, short *port)
int async;
struct sockaddr_in sin, *any = NULL;
int winner = -1;
- time_t xid_seed, xid_lookup;
+ u_int32_t xid_seed, xid_lookup;
int sock, dontblock = 1;
CLIENT *clnt;
char *foo = dom;
OpenPOWER on IntegriCloud