Module Name: src Committed By: elad Date: Sun Sep 13 19:04:29 UTC 2009
Modified Files: src/usr.bin/netstat: if.c Log Message: Put some unsigned long long casts (as was in the original printing code). Should fix build breakage noticed by pgoyette@ on current-users@: http://mail-index.netbsd.org/current-users/2009/09/13/msg010554.html (sorry, don't have an amd64 anymore!) To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/usr.bin/netstat/if.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/netstat/if.c diff -u src/usr.bin/netstat/if.c:1.64 src/usr.bin/netstat/if.c:1.65 --- src/usr.bin/netstat/if.c:1.64 Sun Sep 13 02:53:17 2009 +++ src/usr.bin/netstat/if.c Sun Sep 13 19:04:29 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: if.c,v 1.64 2009/09/13 02:53:17 elad Exp $ */ +/* $NetBSD: if.c,v 1.65 2009/09/13 19:04:29 elad Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else -__RCSID("$NetBSD: if.c,v 1.64 2009/09/13 02:53:17 elad Exp $"); +__RCSID("$NetBSD: if.c,v 1.65 2009/09/13 19:04:29 elad Exp $"); #endif #endif /* not lint */ @@ -590,15 +590,15 @@ { if (bflag) printf("%10llu %8.8s %10llu %5.5s", - cur->ift_ib - old->ift_ib, " ", - cur->ift_ob - old->ift_ob, " "); + (unsigned long long)(cur->ift_ib - old->ift_ib), " ", + (unsigned long long)(cur->ift_ob - old->ift_ob), " "); else printf("%8llu %5llu %8llu %5llu %5llu", - cur->ift_ip - old->ift_ip, - cur->ift_ie - old->ift_ie, - cur->ift_op - old->ift_op, - cur->ift_oe - old->ift_oe, - cur->ift_co - old->ift_co); + (unsigned long long)(cur->ift_ip - old->ift_ip), + (unsigned long long)(cur->ift_ie - old->ift_ie), + (unsigned long long)(cur->ift_op - old->ift_op), + (unsigned long long)(cur->ift_oe - old->ift_oe), + (unsigned long long)(cur->ift_co - old->ift_co)); if (dflag) printf(" %5llu", /* XXX ifnet.if_snd.ifq_drops - ip->ift_dr); */ @@ -610,15 +610,15 @@ { if (bflag) printf(" %10llu %8.8s %10llu %5.5s", - cur->ift_ib - old->ift_ib, " ", - cur->ift_ob - old->ift_ob, " "); + (unsigned long long)(cur->ift_ib - old->ift_ib), " ", + (unsigned long long)(cur->ift_ob - old->ift_ob), " "); else printf(" %8llu %5llu %8llu %5llu %5llu", - cur->ift_ip - old->ift_ip, - cur->ift_ie - old->ift_ie, - cur->ift_op - old->ift_op, - cur->ift_oe - old->ift_oe, - cur->ift_co - old->ift_co); + (unsigned long long)(cur->ift_ip - old->ift_ip), + (unsigned long long)(cur->ift_ie - old->ift_ie), + (unsigned long long)(cur->ift_op - old->ift_op), + (unsigned long long)(cur->ift_oe - old->ift_oe), + (unsigned long long)(cur->ift_co - old->ift_co)); if (dflag) printf(" %5llu", (unsigned long long)(cur->ift_dr - old->ift_dr));