summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcap-dlpi.c2
-rw-r--r--pcap-libdlpi.c2
-rw-r--r--pcap-nit.c2
-rw-r--r--pcap-null.c6
-rw-r--r--pcap-pf.c2
-rw-r--r--pcap-snit.c2
-rw-r--r--pcap-snoop.c2
7 files changed, 8 insertions, 10 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index abf72f2c..8c80d1f3 100644
--- a/pcap-dlpi.c
+++ b/pcap-dlpi.c
@@ -1050,7 +1050,7 @@ is_dlpi_interface(const char *name)
}
int
-get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
{
/*
* Nothing we can do.
diff --git a/pcap-libdlpi.c b/pcap-libdlpi.c
index 2d1b58f3..327cef2d 100644
--- a/pcap-libdlpi.c
+++ b/pcap-libdlpi.c
@@ -288,7 +288,7 @@ is_dlpi_interface(const char *name _U_)
}
int
-get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
{
/*
* Nothing we can do.
diff --git a/pcap-nit.c b/pcap-nit.c
index f41b8edc..be5a20e0 100644
--- a/pcap-nit.c
+++ b/pcap-nit.c
@@ -390,7 +390,7 @@ can_be_bound(const char *name _U_)
}
int
-get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
{
/*
* Nothing we can do.
diff --git a/pcap-null.c b/pcap-null.c
index 2f614837..f7e5cfbd 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -37,12 +37,10 @@ pcap_create_interface(const char *device _U_, char *ebuf)
}
int
-get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
{
/*
- * Nothing we can do.
- * XXX - is there a way to find out whether an adapter has
- * something plugged into it?
+ * There are no interfaces, so this will never be called.
*/
return (0);
}
diff --git a/pcap-pf.c b/pcap-pf.c
index c3c8db94..8dc37f14 100644
--- a/pcap-pf.c
+++ b/pcap-pf.c
@@ -559,7 +559,7 @@ can_be_bound(const char *name _U_)
}
int
-get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
{
/*
* Nothing we can do.
diff --git a/pcap-snit.c b/pcap-snit.c
index 2fa809aa..1122e3a2 100644
--- a/pcap-snit.c
+++ b/pcap-snit.c
@@ -479,7 +479,7 @@ can_be_bound(const char *name _U_)
}
int
-get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
{
/*
* Nothing we can do.
diff --git a/pcap-snoop.c b/pcap-snoop.c
index aa84b27c..14c83f85 100644
--- a/pcap-snoop.c
+++ b/pcap-snoop.c
@@ -440,7 +440,7 @@ can_be_bound(const char *name _U_)
}
int
-get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
{
/*
* Nothing we can do.