Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Not all pointers are 64bit - use uintptr_t i...
details: https://anonhg.NetBSD.org/src/rev/95a78702ff74
branches: trunk
changeset: 787481:95a78702ff74
user: martin <martin%NetBSD.org@localhost>
date: Thu Jun 20 10:43:18 2013 +0000
description:
Not all pointers are 64bit - use uintptr_t instead of uint64_t.
diffstat:
usr.bin/netstat/inet.c | 6 +++---
usr.bin/netstat/inet6.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 7cfd36ed1e96 -r 95a78702ff74 usr.bin/netstat/inet.c
--- a/usr.bin/netstat/inet.c Thu Jun 20 07:29:50 2013 +0000
+++ b/usr.bin/netstat/inet.c Thu Jun 20 10:43:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inet.c,v 1.102 2013/06/19 21:12:03 christos Exp $ */
+/* $NetBSD: inet.c,v 1.103 2013/06/20 10:43:18 martin 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.102 2013/06/19 21:12:03 christos Exp $");
+__RCSID("$NetBSD: inet.c,v 1.103 2013/06/20 10:43:18 martin Exp $");
#endif
#endif /* not lint */
@@ -306,7 +306,7 @@
(char *)&tcpcb, sizeof (tcpcb));
}
pcblist[i].ki_ppcbaddr =
- istcp ? (uint64_t) inpcb.inp_ppcb : (uint64_t) prev;
+ istcp ? (uintptr_t) inpcb.inp_ppcb : (uintptr_t) prev;
pcblist[i].ki_rcvq = (uint64_t)sockb.so_rcv.sb_cc;
pcblist[i].ki_sndq = (uint64_t)sockb.so_snd.sb_cc;
diff -r 7cfd36ed1e96 -r 95a78702ff74 usr.bin/netstat/inet6.c
--- a/usr.bin/netstat/inet6.c Thu Jun 20 07:29:50 2013 +0000
+++ b/usr.bin/netstat/inet6.c Thu Jun 20 10:43:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inet6.c,v 1.61 2013/06/19 21:12:03 christos Exp $ */
+/* $NetBSD: inet6.c,v 1.62 2013/06/20 10:43:18 martin Exp $ */
/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */
/*
@@ -64,7 +64,7 @@
#if 0
static char sccsid[] = "@(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-__RCSID("$NetBSD: inet6.c,v 1.61 2013/06/19 21:12:03 christos Exp $");
+__RCSID("$NetBSD: inet6.c,v 1.62 2013/06/20 10:43:18 martin Exp $");
#endif
#endif /* not lint */
@@ -323,7 +323,7 @@
#endif
}
pcblist[i].ki_ppcbaddr =
- istcp ? (uint64_t) in6pcb.in6p_ppcb : (uint64_t) prev;
+ istcp ? (uintptr_t) in6pcb.in6p_ppcb : (uintptr_t) prev;
pcblist[i].ki_rcvq = (uint64_t)sockb.so_rcv.sb_cc;
pcblist[i].ki_sndq = (uint64_t)sockb.so_snd.sb_cc;
sin6.sin6_addr = in6pcb.in6p_laddr;
Home |
Main Index |
Thread Index |
Old Index