]> The Tcpdump Group git mirrors - libpcap/commitdiff
Declare a variable as static
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 24 Sep 2016 16:14:54 +0000 (18:14 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 24 Sep 2016 16:14:54 +0000 (18:14 +0200)
It only need to be visible in the 'pcap.c' source file.

pcap.c

diff --git a/pcap.c b/pcap.c
index d44825f8f34486848098e36aba6f1ed169774070..696d589e20e9218a2638f6d26cb5dcaa826ca4c8 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -295,7 +295,7 @@ pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header,
        return (p->read_op(p, 1, p->oneshot_callback, (u_char *)&s));
 }
 
-struct capture_source_type {
+static struct capture_source_type {
        int (*findalldevs_op)(pcap_if_t **, char *);
        pcap_t *(*create_op)(const char *, char *, int *);
 } capture_source_types[] = {