From 8844f5bad80968a16bedae8e9f0b47bfe1a2778d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 4 Jul 2009 14:17:36 -0700 Subject: Squelch some compile warnings with older Linux kernels. --- pcap-linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcap-linux.c') diff --git a/pcap-linux.c b/pcap-linux.c index 0c6cf3d..6fe7a24 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -3229,7 +3229,7 @@ enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) strncpy(ireq.ifr_ifrn.ifrn_name, device, sizeof ireq.ifr_ifrn.ifrn_name); ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0; - ireq.u.data.pointer = args; + ireq.u.data.pointer = (void *)args; ireq.u.data.length = 0; ireq.u.data.flags = 0; if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) != -1) { @@ -3259,7 +3259,7 @@ enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) "malloc: %s", pcap_strerror(errno)); return PCAP_ERROR; } - ireq.u.data.pointer = priv; + ireq.u.data.pointer = (void *)priv; if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) == -1) { snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "%s: SIOCGIWPRIV: %s", device, pcap_strerror(errno)); -- cgit v1.2.3