From: guy Date: Thu, 14 Feb 2008 20:54:53 +0000 (+0000) Subject: Fix signature of bpf_dump() to match that of libpcap's version. X-Git-Tag: tcpdump-4.0.0~26 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/200153e5a5ec384d7160427e0855586ccf83ec88 Fix signature of bpf_dump() to match that of libpcap's version. --- diff --git a/bpf_dump.c b/bpf_dump.c index ea16e31b..f509b7ed 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.16.4.1 2008-02-14 20:54:53 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 917d7bbe..ded1e16d 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.280.2.2 2007-12-20 08:14:18 guy Exp $ (LBL) + * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.280.2.3 2008-02-14 20:54:53 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