aboutsummaryrefslogtreecommitdiff
path: root/sbin/atm
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2002-06-07 05:29:13 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2002-06-07 05:29:13 +0000
commit7224076dfef4f0aa4cdc051380e0110a0f2b3797 (patch)
treef1859f6aa7700aebf32bfadafae584888baa1f63 /sbin/atm
parentc44ed52b2e24942bbb53138d8c93e79ce30e0627 (diff)
downloadsrc-7224076dfef4f0aa4cdc051380e0110a0f2b3797.tar.gz
src-7224076dfef4f0aa4cdc051380e0110a0f2b3797.zip
Use a larger data type to prevent counters wrapping so quickly.
Silence a warning.
Notes
Notes: svn path=/head/; revision=97990
Diffstat (limited to 'sbin/atm')
-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 2992cdf3442a..a9fcbcfb256a 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,