Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpcap remove redundant declarations.
details: https://anonhg.NetBSD.org/src/rev/b79b3e9df027
branches: trunk
changeset: 501720:b79b3e9df027
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 06 02:11:18 2001 +0000
description:
remove redundant declarations.
diffstat:
lib/libpcap/gencode.c | 7 +++----
lib/libpcap/gencode.h | 4 +++-
lib/libpcap/optimize.c | 7 ++-----
lib/libpcap/pcap.h | 4 +++-
lib/libpcap/scanner.l | 6 ++++--
5 files changed, 15 insertions(+), 13 deletions(-)
diffs (135 lines):
diff -r 7edb0225c021 -r b79b3e9df027 lib/libpcap/gencode.c
--- a/lib/libpcap/gencode.c Sat Jan 06 02:09:48 2001 +0000
+++ b/lib/libpcap/gencode.c Sat Jan 06 02:11:18 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gencode.c,v 1.25 2000/12/28 22:04:22 thorpej Exp $ */
+/* $NetBSD: gencode.c,v 1.26 2001/01/06 02:11:18 christos Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -26,7 +26,7 @@
static const char rcsid[] =
"@(#) Header: gencode.c,v 1.93 97/06/12 14:22:47 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: gencode.c,v 1.25 2000/12/28 22:04:22 thorpej Exp $");
+__RCSID("$NetBSD: gencode.c,v 1.26 2001/01/06 02:11:18 christos Exp $");
#endif
#endif
@@ -281,12 +281,12 @@
static bpf_u_int32 netmask;
static int snaplen;
int no_optimize;
+extern int n_errors;
int
pcap_compile(pcap_t *p, struct bpf_program *program,
char *buf, int optimize, bpf_u_int32 mask)
{
- extern int n_errors;
int len;
no_optimize = 0;
@@ -333,7 +333,6 @@
struct bpf_program *program,
char *buf, int optimize, bpf_u_int32 mask, char *errbuf)
{
- extern int n_errors;
pcap_t p;
int len;
diff -r 7edb0225c021 -r b79b3e9df027 lib/libpcap/gencode.h
--- a/lib/libpcap/gencode.h Sat Jan 06 02:09:48 2001 +0000
+++ b/lib/libpcap/gencode.h Sat Jan 06 02:11:18 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gencode.h,v 1.9 1999/12/13 01:44:31 itojun Exp $ */
+/* $NetBSD: gencode.h,v 1.10 2001/01/06 02:11:18 christos Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996
@@ -189,7 +189,9 @@
char *sdup(const char *);
struct bpf_insn *icode_to_fcode(struct block *, int *);
+#ifndef YYRECOVERING
int pcap_parse(void);
+#endif
void lex_init(char *);
void sappend(struct slist *, struct slist *);
diff -r 7edb0225c021 -r b79b3e9df027 lib/libpcap/optimize.c
--- a/lib/libpcap/optimize.c Sat Jan 06 02:09:48 2001 +0000
+++ b/lib/libpcap/optimize.c Sat Jan 06 02:11:18 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: optimize.c,v 1.12 2000/11/19 13:18:03 itojun Exp $ */
+/* $NetBSD: optimize.c,v 1.13 2001/01/06 02:11:18 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996
@@ -28,7 +28,7 @@
static const char rcsid[] =
"@(#) Header: optimize.c,v 1.60 96/09/26 23:28:14 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: optimize.c,v 1.12 2000/11/19 13:18:03 itojun Exp $");
+__RCSID("$NetBSD: optimize.c,v 1.13 2001/01/06 02:11:18 christos Exp $");
#endif
#endif
@@ -122,9 +122,6 @@
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 *);
diff -r 7edb0225c021 -r b79b3e9df027 lib/libpcap/pcap.h
--- a/lib/libpcap/pcap.h Sat Jan 06 02:09:48 2001 +0000
+++ b/lib/libpcap/pcap.h Sat Jan 06 02:11:18 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcap.h,v 1.8 2000/10/06 16:39:24 thorpej Exp $ */
+/* $NetBSD: pcap.h,v 1.9 2001/01/06 02:11:18 christos Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996
@@ -136,7 +136,9 @@
void pcap_dump_close(pcap_dumper_t *);
void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *);
+#ifdef notdef
/* XXX this guy lives in the bpf tree */
u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
+#endif
char *bpf_image(struct bpf_insn *, int);
#endif
diff -r 7edb0225c021 -r b79b3e9df027 lib/libpcap/scanner.l
--- a/lib/libpcap/scanner.l Sat Jan 06 02:09:48 2001 +0000
+++ b/lib/libpcap/scanner.l Sat Jan 06 02:11:18 2001 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scanner.l,v 1.12 2000/12/28 22:12:07 thorpej Exp $ */
+/* $NetBSD: scanner.l,v 1.13 2001/01/06 02:11:19 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -28,7 +28,7 @@
static const char rcsid[] =
"@(#) Header: scanner.l,v 1.56 97/07/21 13:31:50 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: scanner.l,v 1.12 2000/12/28 22:12:07 thorpej Exp $");
+__RCSID("$NetBSD: scanner.l,v 1.13 2001/01/06 02:11:19 christos Exp $");
#endif
#endif
@@ -80,7 +80,9 @@
#endif
#define yylval pcap_lval
+#ifdef notdef
extern YYSTYPE yylval;
+#endif
static char *in_buffer;
Home |
Main Index |
Thread Index |
Old Index