From: Guy Harris Date: Sun, 29 Apr 2018 23:38:15 +0000 (-0700) Subject: Fix function signatures. X-Git-Tag: libpcap-1.9-bp~82 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/ebabb2b3b59235daf122700d78d926b6974efff3 Fix function signatures. --- 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.