Skip to content

Commit d342f45

Browse files
committed
Fix signature of bpf_dump() to match that of libpcap's version.
1 parent 75eaa6e commit d342f45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bpf_dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
#ifndef lint
2222
static const char rcsid[] _U_ =
23-
"@(#) $Header: /tcpdump/master/tcpdump/bpf_dump.c,v 1.16 2003-11-16 09:36:08 guy Exp $ (LBL)";
23+
"@(#) $Header: /tcpdump/master/tcpdump/bpf_dump.c,v 1.17 2008-02-14 20:53:49 guy Exp $ (LBL)";
2424
#endif
2525

2626
#ifdef HAVE_CONFIG_H
@@ -35,7 +35,7 @@ static const char rcsid[] _U_ =
3535
#include "interface.h"
3636

3737
void
38-
bpf_dump(struct bpf_program *p, int option)
38+
bpf_dump(const struct bpf_program *p, int option)
3939
{
4040
struct bpf_insn *insn;
4141
int i;

interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
1919
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
2020
*
21-
* @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.282 2007-12-20 08:13:35 guy Exp $ (LBL)
21+
* @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.283 2008-02-14 20:53:49 guy Exp $ (LBL)
2222
*/
2323

2424
#ifndef tcpdump_interface_h
@@ -352,7 +352,7 @@ extern u_int16_t in_cksum_shouldbe(u_int16_t, u_int16_t);
352352
#ifndef HAVE_BPF_DUMP
353353
struct bpf_program;
354354

355-
extern void bpf_dump(struct bpf_program *, int);
355+
extern void bpf_dump(const struct bpf_program *, int);
356356

357357
#endif
358358

0 commit comments

Comments
 (0)