=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/if.c,v retrieving revision 1.40 retrieving revision 1.41 diff -c -r1.40 -r1.41 *** src/usr.bin/netstat/if.c 2005/03/02 16:47:56 1.40 --- src/usr.bin/netstat/if.c 2005/03/04 20:22:16 1.41 *************** *** 1,4 **** ! /* $OpenBSD: if.c,v 1.40 2005/03/02 16:47:56 dhartmei Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: if.c,v 1.41 2005/03/04 20:22:16 jaredy Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* *************** *** 34,40 **** #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else ! static char *rcsid = "$OpenBSD: if.c,v 1.40 2005/03/02 16:47:56 dhartmei Exp $"; #endif #endif /* not lint */ --- 34,40 ---- #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else ! static char *rcsid = "$OpenBSD: if.c,v 1.41 2005/03/04 20:22:16 jaredy Exp $"; #endif #endif /* not lint */ *************** *** 510,516 **** ifnet.if_oerrors - ip->ift_oe, ifnet.if_collisions - ip->ift_co); if (dflag) ! printf(" %5d", ifnet.if_snd.ifq_drops - ip->ift_dr); } ip->ift_ip = ifnet.if_ipackets; --- 510,516 ---- ifnet.if_oerrors - ip->ift_oe, ifnet.if_collisions - ip->ift_co); if (dflag) ! printf(" %5lu", ifnet.if_snd.ifq_drops - ip->ift_dr); } ip->ift_ip = ifnet.if_ipackets; *************** *** 534,550 **** if (lastif - iftot > 0) { if (bflag) printf(" %10lu %8.8s %10lu %5.5s", ! (unsigned long)sum->ift_ib - total->ift_ib, " ", ! (unsigned long)sum->ift_ob - total->ift_ob, " "); else printf(" %8lu %5lu %8lu %5lu %5lu", ! (unsigned long)sum->ift_ip - total->ift_ip, ! (unsigned long)sum->ift_ie - total->ift_ie, ! (unsigned long)sum->ift_op - total->ift_op, ! (unsigned long)sum->ift_oe - total->ift_oe, ! (unsigned long)sum->ift_co - total->ift_co); if (dflag) ! printf(" %5d", sum->ift_dr - total->ift_dr); } *total = *sum; putchar('\n'); --- 534,550 ---- if (lastif - iftot > 0) { if (bflag) printf(" %10lu %8.8s %10lu %5.5s", ! sum->ift_ib - total->ift_ib, " ", ! sum->ift_ob - total->ift_ob, " "); else printf(" %8lu %5lu %8lu %5lu %5lu", ! sum->ift_ip - total->ift_ip, ! sum->ift_ie - total->ift_ie, ! sum->ift_op - total->ift_op, ! sum->ift_oe - total->ift_oe, ! sum->ift_co - total->ift_co); if (dflag) ! printf(" %5lu", sum->ift_dr - total->ift_dr); } *total = *sum; putchar('\n');