Alas, the libpcap API didn't use "void *" where it should have; squelch

some warnings from Clang.

svn path=/trunk/; revision=37934
This commit is contained in:
Guy Harris 2011-07-08 02:02:37 +00:00
parent eedafe0a92
commit da461f18ad
1 changed files with 2 additions and 2 deletions

View File

@ -3576,7 +3576,7 @@ static void
capture_loop_write_packet_cb(u_char *pcap_opts_p, const struct pcap_pkthdr *phdr,
const u_char *pd)
{
pcap_options *pcap_opts = (pcap_options *) pcap_opts_p;
pcap_options *pcap_opts = (pcap_options *) (void *) pcap_opts_p;
int err;
/* We may be called multiple times from pcap_dispatch(); if we've set
@ -3618,7 +3618,7 @@ static void
capture_loop_queue_packet_cb(u_char *pcap_opts_p, const struct pcap_pkthdr *phdr,
const u_char *pd)
{
pcap_options *pcap_opts = (pcap_options *) pcap_opts_p;
pcap_options *pcap_opts = (pcap_options *) (void *) pcap_opts_p;
pcap_queue_element *queue_element;
gboolean limit_reached;