[email protected]
[Top] [All Lists]

PERFORCE change 114204 for review

Subject: PERFORCE change 114204 for review
From: "Christian S.J. Peron"
Date: Wed, 7 Feb 2007 19:46:15 GMT
http://perforce.freebsd.org/chv.cgi?CH=114204

Change 114204 by [email protected]_rnd01 on 2007/02/07 19:46:06

        cleanup local variables

Affected files ...

.. //depot/projects/zcopybpf/utils/bpfnull/bpfnull.c#10 edit

Differences ...

==== //depot/projects/zcopybpf/utils/bpfnull/bpfnull.c#10 (text+ko) ====

@@ -91,8 +91,8 @@
 bpf_process_packets(struct bpf_zbuf *bz, char *bufname)
 {
        struct pcap_pkthdr phd;
-       int clen, hlen;
-       u_char *b,*bp, *ep, *p;
+       int clen, hlen, c;
+       u_char *b,*bp, *ep, *p, c;
 #define bhp ((struct bpf_hdr *)bp)
 
        b = bp = bz->bz_bufa;
@@ -105,8 +105,6 @@
                phd.ts.tv_usec = bhp->bh_tstamp.tv_usec;
                phd.caplen = phd.len = bhp->bh_datalen;
                if (Tflag) {
-                       int i;
-                       char c;
                        for (i = 0; i < phd.caplen; i++)
                                c = p[i];
                        bp += BPF_WORDALIGN(clen + hlen);
_______________________________________________
[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 114204 for review, Christian S.J. Peron <=