aboutsummaryrefslogtreecommitdiff
path: root/pcap-dbus.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-dbus.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-dbus.c')
-rw-r--r--pcap-dbus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pcap-dbus.c b/pcap-dbus.c
index 3a54d444..eb856355 100644
--- a/pcap-dbus.c
+++ b/pcap-dbus.c
@@ -53,7 +53,7 @@ struct pcap_dbus {
static int
dbus_read(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user)
{
- struct pcap_dbus *handlep = handle->private;
+ struct pcap_dbus *handlep = handle->priv;
struct pcap_pkthdr pkth;
DBusMessage *message;
@@ -106,7 +106,7 @@ static int
dbus_write(pcap_t *handle, const void *buf, size_t size)
{
/* XXX, not tested */
- struct pcap_dbus *handlep = handle->private;
+ struct pcap_dbus *handlep = handle->priv;
DBusError error = DBUS_ERROR_INIT;
DBusMessage *msg;
@@ -127,7 +127,7 @@ dbus_write(pcap_t *handle, const void *buf, size_t size)
static int
dbus_stats(pcap_t *handle, struct pcap_stat *stats)
{
- struct pcap_dbus *handlep = handle->private;
+ struct pcap_dbus *handlep = handle->priv;
stats->ps_recv = handlep->packets_read;
stats->ps_drop = 0;
@@ -138,7 +138,7 @@ dbus_stats(pcap_t *handle, struct pcap_stat *stats)
static void
dbus_cleanup(pcap_t *handle)
{
- struct pcap_dbus *handlep = handle->private;
+ struct pcap_dbus *handlep = handle->priv;
dbus_connection_unref(handlep->conn);
@@ -159,7 +159,7 @@ dbus_activate(pcap_t *handle)
#define N_RULES sizeof(rules)/sizeof(rules[0])
- struct pcap_dbus *handlep = handle->private;
+ struct pcap_dbus *handlep = handle->priv;
const char *dev = handle->opt.source;
DBusError error = DBUS_ERROR_INIT;