]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix signature of bpf_dump() to match that of libpcap's version.
authorguy <guy>
Thu, 14 Feb 2008 20:54:53 +0000 (20:54 +0000)
committerguy <guy>
Thu, 14 Feb 2008 20:54:53 +0000 (20:54 +0000)
bpf_dump.c
interface.h

index ea16e31b91aedb9564b75e772397aaba98903620..f509b7edbfcba378182dbb2581121d3758a8519a 100644 (file)
@@ -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;
index 917d7bbec635fac3e20801f1a7092565f0736851..ded1e16d000c281b214ab28c2ae012ac696f8b8e 100644 (file)
@@ -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