aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-04-30 00:37:41 -0700
committerGuy Harris <guy@alum.mit.edu>2018-04-30 00:37:41 -0700
commit95bd30319a119f1111a09ca92404b45cbf5d2a93 (patch)
treee545035b5eeaffbee950a89f73f3bf4adebbf69f
parentbb1a2c4c8163b5b96f408f995065aec63ce7e0d6 (diff)
get_if_flags() in pcap-npf.c doesn't need to be global.
It only needs to be global if one of the routines in pcap.c that calls it is called, and that's not the case with NPF.
-rw-r--r--pcap-npf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-npf.c b/pcap-npf.c
index 96e327bc..371abd5f 100644
--- a/pcap-npf.c
+++ b/pcap-npf.c
@@ -1431,7 +1431,7 @@ pcap_add_if_npf(pcap_if_list_t *devlistp, char *name, bpf_u_int32 flags,
return (res);
}
-int
+static int
get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
{
char *name_copy;