Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Replace usage of caddr_t with intptr_t, to a...
details: https://anonhg.NetBSD.org/src/rev/808a5716a924
branches: trunk
changeset: 583478:808a5716a924
user: he <he%NetBSD.org@localhost>
date: Mon Aug 08 12:11:52 2005 +0000
description:
Replace usage of caddr_t with intptr_t, to allow this to build cleanly
on both 32- and 64-bit archs.
diffstat:
usr.bin/netstat/inet.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 1aa1e57a3ca2 -r 808a5716a924 usr.bin/netstat/inet.c
--- a/usr.bin/netstat/inet.c Mon Aug 08 11:31:48 2005 +0000
+++ b/usr.bin/netstat/inet.c Mon Aug 08 12:11:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inet.c,v 1.66 2005/08/07 17:10:36 elad Exp $ */
+/* $NetBSD: inet.c,v 1.67 2005/08/08 12:11:52 he Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-__RCSID("$NetBSD: inet.c,v 1.66 2005/08/07 17:10:36 elad Exp $");
+__RCSID("$NetBSD: inet.c,v 1.67 2005/08/08 12:11:52 he Exp $");
#endif
#endif /* not lint */
@@ -117,7 +117,7 @@
}
static void
-protopr0(caddr_t ppcb, u_long rcv_sb_cc, u_long snd_sb_cc,
+protopr0(intptr_t ppcb, u_long rcv_sb_cc, u_long snd_sb_cc,
struct in_addr *laddr, u_int16_t lport,
struct in_addr *faddr, u_int16_t fport,
short t_state, char *name)
@@ -226,7 +226,7 @@
first = 0;
}
- protopr0((caddr_t) pcblist[i].ki_ppcbaddr,
+ protopr0((intptr_t) pcblist[i].ki_ppcbaddr,
pcblist[i].ki_rcvq, pcblist[i].ki_sndq,
&src.sin_addr, src.sin_port,
&dst.sin_addr, dst.sin_port,
@@ -263,7 +263,7 @@
first = 0;
}
- protopr0(istcp ? (caddr_t) inpcb.inp_ppcb : (caddr_t) prev,
+ protopr0(istcp ? (intptr_t) inpcb.inp_ppcb : (intptr_t) prev,
sockb.so_rcv.sb_cc, sockb.so_snd.sb_cc,
&inpcb.inp_laddr, inpcb.inp_lport,
&inpcb.inp_faddr, inpcb.inp_fport,
Home |
Main Index |
Thread Index |
Old Index