diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-08-07 10:23:05 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-08-07 10:23:05 -0700 |
commit | d1ab12c5ea8ce79fb7bad03a423c7cfb394ea9eb (patch) | |
tree | deddbf707f2531e148c2b56f83e5fbbb3e8b4820 /pcap-netfilter-linux.c | |
parent | 23e0a020de04153f19bb4842821b91a5fd5b194e (diff) |
Rename the "private" member of a pcap_t to avoid C++ issues.
"private" is a C++ keyword; rename the "private" member of a pcap_t to
"priv" to avoid that, as per Gisle Vanem's suggestion.
Diffstat (limited to 'pcap-netfilter-linux.c')
-rw-r--r-- | pcap-netfilter-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-netfilter-linux.c b/pcap-netfilter-linux.c index 35c677bc..30719d1b 100644 --- a/pcap-netfilter-linux.c +++ b/pcap-netfilter-linux.c @@ -86,7 +86,7 @@ static int nfqueue_send_verdict(const pcap_t *handle, u_int16_t group_id, u_int3 static int netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) { - struct pcap_netfilter *handlep = handle->private; + struct pcap_netfilter *handlep = handle->priv; const unsigned char *buf; int count = 0; int len; @@ -219,7 +219,7 @@ netfilter_set_datalink(pcap_t *handle, int dlt) static int netfilter_stats_linux(pcap_t *handle, struct pcap_stat *stats) { - struct pcap_netfilter *handlep = handle->private; + struct pcap_netfilter *handlep = handle->priv; stats->ps_recv = handlep->packets_read; stats->ps_drop = 0; |