From 627cdd22530ca362af911bfcbc4c01a64e6321a9 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 2 Sep 2015 15:06:40 -0700 Subject: Fix some compile errors. --- pcap-linux.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pcap-linux.c') diff --git a/pcap-linux.c b/pcap-linux.c index d5735699..8369d6aa 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -665,10 +665,15 @@ nl80211_cleanup(struct nl80211_state *state) nl_socket_free(state->nl_sock); } +static int +del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, + const char *device, const char *mondevice); + static int add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, const char *device, const char *mondevice) { + struct pcap_linux *handlep = handle->priv; int ifindex; struct nl_msg *msg; int err; @@ -762,7 +767,7 @@ add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, /* * Get rid of the monitor device. */ - del_mon_if(handle, sock_fd, state, device, >mondevice); + del_mon_if(handle, sock_fd, state, device, handlep->mondevice); return PCAP_ERROR; } return 1; -- cgit v1.2.3