diff options
author | Jörg Mayer <jmayer@loplof.de> | 2010-07-14 13:22:34 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2010-07-14 13:22:34 +0000 |
commit | 3a8eea122f1a4724a9d4e87d82e1dd4aeb9bad57 (patch) | |
tree | 08a1a4123c9bcd7f19999eda83ad05f530857780 /dumpcap.c | |
parent | b5753ef3fcb10bda742c06bbe52fc69cd84d3017 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |