Date: Fri, 2 Feb 2007 23:17:12 GMT From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113927 for review Message-ID: <200702022317.l12NHCtA042654@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113927 Change 113927 by csjp@csjp_rnd01 on 2007/02/02 23:16:32 Clean up for -Wall Affected files ... .. //depot/projects/zcopybpf/utils/bpfnull/bpfnull.c#8 edit Differences ... ==== //depot/projects/zcopybpf/utils/bpfnull/bpfnull.c#8 (text+ko) ==== @@ -91,17 +91,11 @@ struct pcap_pkthdr phd; int clen, hlen; u_char *b,*bp, *ep, *p; - int i; #define bhp ((struct bpf_hdr *)bp) b = bp = bz->bz_bufa; ep = bp + bz->bz_buflen; - i = 0; while (bp < ep) { - i++; - if (vflag) - fprintf(stderr, "%s %d clen=%i hlen=%d dlen=%d bp=%lu pd=%lu ep=%lu %lu bytes away from eob %lu bytes into buffer\n", - bufname, i, clen, hlen, bhp->bh_datalen, bp, (u_char *)bp + hlen, ep, ep - bp, bp - b); clen = bhp->bh_caplen; hlen = bhp->bh_hdrlen; p = (u_char *)bp + hlen; @@ -125,7 +119,6 @@ char *pbuf; int n; struct bpf_zbuf_header *bzha, *bzhb; - int d; pbuf = malloc(bflag + 1); if (pbuf == NULL) @@ -252,7 +245,7 @@ int main(int argc, char *argv[]) { - int opt, in, bufmode; + int opt, in; struct bpf_zbuf bz; char ch;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702022317.l12NHCtA042654>