PERFORCE change 113927 for review
Christian S.J. Peron
csjp at FreeBSD.org
Fri Feb 2 23:17:13 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=113927
Change 113927 by csjp at 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;
More information about the p4-projects
mailing list