From d55ebfbd4e1ccc00cad998a5e9d24de4b98b448e Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Mon, 19 Apr 2010 16:35:47 +0000 Subject: [PATCH] fix 64-bit build Reported by: Robert Noland --- sbin/ipfw/ipfw2.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index b0f76830c40..f313b51b968 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) ;