From: guy Date: Sun, 24 Mar 2002 23:25:37 +0000 (+0000) Subject: includes and ; there's no need to X-Git-Tag: libpcap-0.7.2~36 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/a790d298a5bf86295baa00c2ed9b8b5e35cc5eed includes and ; there's no need to include it in these files, as they either include "pcap-int.h", which includes , or they include directly. --- diff --git a/bpf_dump.c b/bpf_dump.c index 0b651c2a..a808db97 100644 --- a/bpf_dump.c +++ b/bpf_dump.c @@ -20,16 +20,13 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/bpf_dump.c,v 1.12 2000-06-26 04:17:05 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/bpf_dump.c,v 1.12.4.1 2002-03-24 23:25:37 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include -#include - #include #include diff --git a/bpf_image.c b/bpf_image.c index ab225eda..32980d13 100644 --- a/bpf_image.c +++ b/bpf_image.c @@ -21,16 +21,13 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/bpf_image.c,v 1.24 2000-07-11 00:37:04 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/bpf_image.c,v 1.24.4.1 2002-03-24 23:25:37 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include -#include - #include #include diff --git a/optimize.c b/optimize.c index d44e041d..f8ed03a4 100644 --- a/optimize.c +++ b/optimize.c @@ -22,16 +22,13 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/optimize.c,v 1.71 2001-11-12 22:04:23 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/optimize.c,v 1.69.2.1 2002-03-24 23:25:38 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include -#include - #include #include #include @@ -120,6 +117,9 @@ static void opt_peep(struct block *); static void opt_stmt(struct stmt *, int[], int); static void deadstmt(struct stmt *, struct stmt *[]); static void opt_deadstores(struct block *); +static void opt_blk(struct block *, int); +static int use_conflict(struct block *, struct block *); +static void opt_j(struct edge *); static struct block *fold_edge(struct block *, struct edge *); static inline int eq_blk(struct block *, struct block *); static int slength(struct slist *); @@ -820,16 +820,6 @@ opt_peep(b) done = 0; opt_not(b); } - /* - * jset #0 -> never - * jset #ffffffff -> always - */ - if (b->s.code == (BPF_JMP|BPF_K|BPF_JSET)) { - if (b->s.k == 0) - JT(b) = JF(b); - if (b->s.k == 0xffffffff) - JF(b) = JT(b); - } /* * If the accumulator is a known constant, we can compute the * comparison result. diff --git a/savefile.c b/savefile.c index 06d5a2a1..4303fb60 100644 --- a/savefile.c +++ b/savefile.c @@ -30,16 +30,13 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.55.2.1 2002-03-08 11:28:03 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.55.2.2 2002-03-24 23:25:38 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include -#include - #include #include #include