summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-09-05 20:29:06 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-09-05 20:29:06 +0000
commit4d31f03eb95a72ce43a873d36ccaf76ae60e4c4b (patch)
tree1866d10ef4b14cf60248b0cfe45b3866f9ace9ce /usr.bin
parent5c840cf8a0b09beaa61c485e689e85fa52f87f2b (diff)
Correct the format strings after the recent rt_metrics changes.
rmx_pksent is not u_int64_t all others are just u_int.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/route.c8
-rw-r--r--usr.bin/netstat/show.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 7494730ebe6..86eed5945b4 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.74 2006/11/17 01:11:23 itojun Exp $ */
+/* $OpenBSD: route.c,v 1.75 2007/09/05 20:29:05 claudio Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94";
#else
-static char *rcsid = "$OpenBSD: route.c,v 1.74 2006/11/17 01:11:23 itojun Exp $";
+static char *rcsid = "$OpenBSD: route.c,v 1.75 2007/09/05 20:29:05 claudio Exp $";
#endif
#endif /* not lint */
@@ -295,7 +295,7 @@ p_krtentry(struct rtentry *rt)
p_flags(rt->rt_flags, "%-6.6s ");
printf("%6d %8ld ", rt->rt_refcnt, rt->rt_use);
if (rt->rt_rmx.rmx_mtu)
- printf("%6ld ", rt->rt_rmx.rmx_mtu);
+ printf("%6u ", rt->rt_rmx.rmx_mtu);
else
printf("%6s ", "-");
putchar((rt->rt_rmx.rmx_locks & RTV_MTU) ? 'L' : ' ');
@@ -310,7 +310,7 @@ p_krtentry(struct rtentry *rt)
}
putchar('\n');
if (vflag)
- printf("\texpire %10lu%c\n",
+ printf("\texpire %10u%c\n",
rt->rt_rmx.rmx_expire,
(rt->rt_rmx.rmx_locks & RTV_EXPIRE) ? 'L' : ' ');
}
diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c
index e8f94b8582c..c8f263a7056 100644
--- a/usr.bin/netstat/show.c
+++ b/usr.bin/netstat/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.10 2007/07/25 11:50:47 claudio Exp $ */
+/* $OpenBSD: show.c,v 1.11 2007/09/05 20:29:05 claudio Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -265,10 +265,10 @@ p_rtentry(struct rt_msghdr *rtm)
p_sockaddr(rti_info[RTAX_GATEWAY], NULL, RTF_HOST,
WID_GW(sa->sa_family));
p_flags(rtm->rtm_flags, "%-6.6s ");
- printf("%6d %8ld ", (int)rtm->rtm_rmx.rmx_refcnt,
+ printf("%6u %8llu ", rtm->rtm_rmx.rmx_refcnt,
rtm->rtm_rmx.rmx_pksent);
if (rtm->rtm_rmx.rmx_mtu)
- printf("%6ld ", rtm->rtm_rmx.rmx_mtu);
+ printf("%6u ", rtm->rtm_rmx.rmx_mtu);
else
printf("%6s ", "-");
putchar((rtm->rtm_rmx.rmx_locks & RTV_MTU) ? 'L' : ' ');