]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch "case not handled in switch" warnings.
authorGuy Harris <[email protected]>
Tue, 1 May 2018 16:46:38 +0000 (09:46 -0700)
committerGuy Harris <[email protected]>
Tue, 1 May 2018 16:46:38 +0000 (09:46 -0700)
pcap-npf.c

index 0503b0f3d9267a6a8f3c86fb3f9ff81d00c8fcaf..0b3dfea38824d660b80e7267b69a2f5d58713af2 100644 (file)
@@ -1591,6 +1591,12 @@ get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
                         */
                        *flags |= PCAP_IF_WIRELESS;
                        break;
+
+               default:
+                       /*
+                        * Not wireless.
+                        */
+                       break;
                }
        }
 #endif