summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguy <guy>2008-02-14 20:53:49 +0000
committerguy <guy>2008-02-14 20:53:49 +0000
commitd342f456e4be5b05a28ca88613b5e7a0582233cd (patch)
treef4bec6386d452fa009751fa00f9b8297318c05f0
parent75eaa6e7bf18da4e98e251194ed0edab866abfa1 (diff)
downloadtcpdump-d342f456e4be5b05a28ca88613b5e7a0582233cd.tar.gz
Fix signature of bpf_dump() to match that of libpcap's version.
-rw-r--r--bpf_dump.c4
-rw-r--r--interface.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/bpf_dump.c b/bpf_dump.c
index ea16e31b..b50d7e7b 100644
--- a/bpf_dump.c
+++ b/bpf_dump.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/bpf_dump.c,v 1.16 2003-11-16 09:36:08 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/bpf_dump.c,v 1.17 2008-02-14 20:53:49 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -35,7 +35,7 @@ static const char rcsid[] _U_ =
#include "interface.h"
void
-bpf_dump(struct bpf_program *p, int option)
+bpf_dump(const struct bpf_program *p, int option)
{
struct bpf_insn *insn;
int i;
diff --git a/interface.h b/interface.h
index ff43534f..ebfa7028 100644
--- a/interface.h
+++ b/interface.h
@@ -18,7 +18,7 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.282 2007-12-20 08:13:35 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.283 2008-02-14 20:53:49 guy Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -352,7 +352,7 @@ extern u_int16_t in_cksum_shouldbe(u_int16_t, u_int16_t);
#ifndef HAVE_BPF_DUMP
struct bpf_program;
-extern void bpf_dump(struct bpf_program *, int);
+extern void bpf_dump(const struct bpf_program *, int);
#endif