aboutsummaryrefslogtreecommitdiff
path: root/pcap-pf.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-08-07 10:23:05 -0700
committerGuy Harris <guy@alum.mit.edu>2013-08-07 10:23:05 -0700
commitd1ab12c5ea8ce79fb7bad03a423c7cfb394ea9eb (patch)
treededdbf707f2531e148c2b56f83e5fbbb3e8b4820 /pcap-pf.c
parent23e0a020de04153f19bb4842821b91a5fd5b194e (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-pf.c')
-rw-r--r--pcap-pf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcap-pf.c b/pcap-pf.c
index 5eb36087..9a79bdf5 100644
--- a/pcap-pf.c
+++ b/pcap-pf.c
@@ -105,7 +105,7 @@ static int pcap_setfilter_pf(pcap_t *, struct bpf_program *);
static int
pcap_read_pf(pcap_t *pc, int cnt, pcap_handler callback, u_char *user)
{
- struct pcap_pf *pf = pc->private;
+ struct pcap_pf *pf = pc->priv;
register u_char *p, *bp;
register int cc, n, buflen, inc;
register struct enstamp *sp;
@@ -247,7 +247,7 @@ pcap_inject_pf(pcap_t *p, const void *buf, size_t size)
static int
pcap_stats_pf(pcap_t *p, struct pcap_stat *ps)
{
- struct pcap_pf *pf = p->private;
+ struct pcap_pf *pf = p->priv;
/*
* If packet filtering is being done in the kernel:
@@ -302,7 +302,7 @@ pcap_stats_pf(pcap_t *p, struct pcap_stat *ps)
static int
pcap_activate_pf(pcap_t *p)
{
- struct pcap_pf *pf = p->private;
+ struct pcap_pf *pf = p->priv;
short enmode;
int backlog = -1; /* request the most */
struct enfilter Filter;
@@ -529,7 +529,7 @@ pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
static int
pcap_setfilter_pf(pcap_t *p, struct bpf_program *fp)
{
- struct pcap_pf *pf = p->private;
+ struct pcap_pf *pf = p->priv;
struct bpf_version bv;
/*