Skip to content

Commit

Permalink
Fix signature of bpf_dump() to match that of libpcap's version.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuguy committed Feb 14, 2008
1 parent 75eaa6e commit d342f45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bpf_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d342f45

Please sign in to comment.