summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-06-07 05:29:13 +0000
committermdodd <mdodd@FreeBSD.org>2002-06-07 05:29:13 +0000
commit355983613bbc6fd202bee72ca1fda7bc3c0a714f (patch)
treef1859f6aa7700aebf32bfadafae584888baa1f63 /sbin
parent829354162289eb08067e97dd84727d7935e13b7b (diff)
downloadFreeBSD-src-355983613bbc6fd202bee72ca1fda7bc3c0a714f.zip
FreeBSD-src-355983613bbc6fd202bee72ca1fda7bc3c0a714f.tar.gz
Use a larger data type to prevent counters wrapping so quickly.
Silence a warning.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/atm/atm/atm_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/atm/atm/atm_print.c b/sbin/atm/atm/atm_print.c
index 2992cdf..a9fcbcf 100644
--- a/sbin/atm/atm/atm_print.c
+++ b/sbin/atm/atm/atm_print.c
@@ -394,7 +394,7 @@ print_asrv_info(si)
for (i = 0; i < si->asp_nprefix; i++) {
printf("%s", inet_ntoa(*addr));
addr++;
- printf("/0x%0lx", ntohl(addr->s_addr));
+ printf("/0x%0lx", (u_long)ntohl(addr->s_addr));
addr++;
if (i < si->asp_nprefix -1)
printf(", ");
@@ -690,7 +690,7 @@ print_intf_stats(pi)
/*
* Print the interface statistics
*/
- printf("%-9s %7ld %8ld %5ld %7ld %8ld %5ld %5ld\n",
+ printf("%-9s %7lld %8lld %5lld %7lld %8lld %5lld %5lld\n",
pi->app_intf,
pi->app_ipdus,
pi->app_ibytes,
OpenPOWER on IntegriCloud