diff options
author | luigi <luigi@FreeBSD.org> | 2010-04-19 16:35:47 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2010-04-19 16:35:47 +0000 |
commit | bb534382180913f176ec65d85f59265953baed39 (patch) | |
tree | f170eaaa3f8f2b295134a58a79963fff3134eaea /sbin/ipfw | |
parent | 6758ecb23db50c0cd80d73e53e7265c4ebd635e3 (diff) | |
download | FreeBSD-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.c | 6 |
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) ; |