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
This commit is contained in:
Jörg Mayer 2010-07-14 13:22:34 +00:00
parent b5753ef3fc
commit 3a8eea122f
1 changed files with 2 additions and 0 deletions

View File

@ -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