summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2009-08-04 03:45:48 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2009-08-04 03:45:48 +0000
commitd6b01c78e4ba09d2b84872518921b399b2938732 (patch)
tree03b9e4c1af7eb67b6ddf36a17a0a5d2e78df0ad5 /usr.bin
parent301800cbd4fa684a77f500b95bc83c7ec82590fb (diff)
fix some warnings. there are others, but nobody wants to look at them.
ok deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/if.c9
-rw-r--r--usr.bin/netstat/route.c4
2 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index 5b9b48c580f..c823347fb10 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.60 2009/02/07 15:06:04 chl Exp $ */
+/* $OpenBSD: if.c,v 1.61 2009/08/04 03:45:47 tedu Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
@@ -151,7 +151,7 @@ intpr(int interval)
continue;
}
- printf("%-7s %-5ld ", name, ifd->ifi_mtu);
+ printf("%-7s %-5d ", name, ifd->ifi_mtu);
print_addr(rti_info[RTAX_IFP], rti_info, ifd);
break;
case RTM_NEWADDR:
@@ -168,7 +168,7 @@ intpr(int interval)
sa = (struct sockaddr *)(next + rtm->rtm_hdrlen);
get_rtaddrs(ifam->ifam_addrs, sa, rti_info);
- printf("%-7s %-5ld ", name, ifd->ifi_mtu);
+ printf("%-7s %-5d ", name, ifd->ifi_mtu);
print_addr(rti_info[RTAX_IFA], rti_info, ifd);
break;
}
@@ -352,7 +352,6 @@ volatile sig_atomic_t signalled; /* set if alarm goes off "early" */
static void
sidewaysintpr(unsigned int interval)
{
- struct ifnet ifnet;
sigset_t emptyset;
int line;
@@ -428,7 +427,7 @@ loop:
if (dflag)
printf(" %5llu",
/* XXX ifnet.if_snd.ifq_drops - ip->ift_dr); */
- 0);
+ 0LL);
ip_old = ip_cur;
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index f2b5583631d..81eecc8eed6 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.86 2009/05/31 18:03:42 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.87 2009/08/04 03:45:47 tedu Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -293,7 +293,7 @@ p_krtentry(struct rtentry *rt)
p_addr(sa, mask, rt->rt_flags);
p_gwaddr(kgetsa(rt->rt_gateway), sa->sa_family);
p_flags(rt->rt_flags, "%-6.6s ");
- printf("%5u %8ld ", rt->rt_refcnt, rt->rt_use);
+ printf("%5u %8lld ", rt->rt_refcnt, rt->rt_use);
if (rt->rt_rmx.rmx_mtu)
printf("%5u ", rt->rt_rmx.rmx_mtu);
else