Subject: Re: CVS commit: src/usr.bin/netstat
To: None <rpaulo@netbsd.org>
From: Elad Efrat <elad@NetBSD.org>
List: source-changes
Date: 08/05/2005 10:30:19
This is a multi-part message in MIME format.
--------------070601080702030607040300
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Rui Paulo wrote:

> Added Files:
> 	src/usr.bin/netstat: bpf.c

Please consider the attached patch for src/usr.bin/netstat/bpf.c

-e.

-- 
Elad Efrat
PGP Key ID: 0x666EB914

--------------070601080702030607040300
Content-Type: text/plain;
 name="bpf.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="bpf.c.diff"

Index: bpf.c
===================================================================
RCS file: /cvsroot/src/usr.bin/netstat/bpf.c,v
retrieving revision 1.1
diff -r1.1 bpf.c
65,67c65,70
< 	printf("\t%lld total packets received\n", bpf_s.bs_recv);
< 	printf("\t%lld total packets captured\n", bpf_s.bs_capt);
< 	printf("\t%lld total packets dropped\n", bpf_s.bs_drop);
---
> 	printf("\t%llu total packets received\n",
> 	       (unsigned long long) bpf_s.bs_recv);
> 	printf("\t%llu total packets captured\n",
> 	       (unsigned long long) bpf_s.bs_capt);
> 	printf("\t%llu total packets dropped\n",
> 	       (unsigned long long) bpf_s.bs_drop);
125,127c128,131
< 		printf("%-8lld %-8lld %-8lld ", 
< 			BPFEXT(bde_rcount), BPFEXT(bde_dcount), 
< 			BPFEXT(bde_ccount));
---
> 		printf("%-8llu %-8llu %-8llu ", 
> 			(unsigned long long) BPFEXT(bde_rcount),
> 			(unsigned long long) BPFEXT(bde_dcount), 
> 			(unsigned long long) BPFEXT(bde_ccount));

--------------070601080702030607040300--