aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2010-07-14 13:22:34 +0000
committerJörg Mayer <jmayer@loplof.de>2010-07-14 13:22:34 +0000
commit3a8eea122f1a4724a9d4e87d82e1dd4aeb9bad57 (patch)
tree08a1a4123c9bcd7f19999eda83ad05f530857780 /dumpcap.c
parentb5753ef3fcb10bda742c06bbe52fc69cd84d3017 (diff)
Add #ifdef HAVE_BPF_IMAGE
around show_filter_code(capture_options *capture_opts) To fix a warning about an unused function. svn path=/trunk/; revision=33519
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index d6070f45f7..a62b726018 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -712,6 +712,7 @@ compile_capture_filter(const char *iface, pcap_t *pcap_h,
return TRUE;
}
+#ifdef HAVE_BPF_IMAGE
static gboolean
show_filter_code(capture_options *capture_opts)
{
@@ -765,6 +766,7 @@ show_filter_code(capture_options *capture_opts)
printf("%s\n", bpf_image(insn, i));
return TRUE;
}
+#endif
/*
* capture_interface_list() is expected to do the right thing to get