]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix get_if_flags() signature after commit ff647f1. [skip ci]
authorDenis Ovsienko <[email protected]>
Tue, 10 Aug 2021 10:48:06 +0000 (11:48 +0100)
committerGuy Harris <[email protected]>
Sun, 20 Feb 2022 23:14:50 +0000 (15:14 -0800)
Both versions of the function use "flags", so lose the _U_ and the
induced warnings on Solaris 11 (from Clang only):

./pcap-bpf.c:2982:7: warning: 'flags' was marked unused but was used
  [-Wused-but-marked-unused]
./pcap-bpf.c:2987:4: warning: 'flags' was marked unused but was used
  [-Wused-but-marked-unused]

(cherry picked from commit a9442dd27261971308287d67e12047bdd150f3c1)

pcap-bpf.c

index f0ccb96561c4d4c93197dbb825915f1ecc857192..836e7d00c51569c61486ef094eb2e03c732f4ca8 100644 (file)
@@ -2968,7 +2968,7 @@ get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
 }
 #else
 static 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, char *errbuf _U_)
 {
        /*
         * Nothing we can do other than mark loopback devices as "the