summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2010-04-19 16:35:47 +0000
committerluigi <luigi@FreeBSD.org>2010-04-19 16:35:47 +0000
commitbb534382180913f176ec65d85f59265953baed39 (patch)
treef170eaaa3f8f2b295134a58a79963fff3134eaea /sbin/ipfw
parent6758ecb23db50c0cd80d73e53e7265c4ebd635e3 (diff)
downloadFreeBSD-src-bb534382180913f176ec65d85f59265953baed39.zip
FreeBSD-src-bb534382180913f176ec65d85f59265953baed39.tar.gz
fix 64-bit build
Reported by: Robert Noland
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/ipfw2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index b0f7683..f313b51 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -328,9 +328,11 @@ pr_u64(uint64_t *pd, int width)
#else
#define U64_FMT "llu"
#endif
- uint64_t d;
+ uint64_t u;
+ unsigned long long d;
- bcopy (pd, &d, sizeof(d));
+ bcopy (pd, &u, sizeof(u));
+ d = u;
return (width > 0) ?
printf("%*" U64_FMT " ", width, d) :
snprintf(NULL, 0, "%" U64_FMT, d) ;
OpenPOWER on IntegriCloud