Author: luigi
Date: Mon Apr 19 16:35:47 2010
New Revision: 206846
URL: http://svn.freebsd.org/changeset/base/206846

Log:
  fix 64-bit build
  
  Reported by:  Robert Noland

Modified:
  head/sbin/ipfw/ipfw2.c

Modified: head/sbin/ipfw/ipfw2.c
==============================================================================
--- head/sbin/ipfw/ipfw2.c      Mon Apr 19 16:17:30 2010        (r206845)
+++ head/sbin/ipfw/ipfw2.c      Mon Apr 19 16:35:47 2010        (r206846)
@@ -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) ;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to