[email protected]
[Top] [All Lists]

PERFORCE change 113927 for review

Subject: PERFORCE change 113927 for review
From: "Christian S.J. Peron"
Date: Fri, 2 Feb 2007 23:17:12 GMT
http://perforce.freebsd.org/chv.cgi?CH=113927

Change 113927 by [email protected]_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;
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 113927 for review, Christian S.J. Peron <=