summaryrefslogtreecommitdiff
path: root/lib/netns_linux.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-12-16 07:42:47 -0500
committerGitHub <noreply@github.com>2019-12-16 07:42:47 -0500
commit04dd9e420ee6f5a7d5c47cd50333879f78abc094 (patch)
treeba47ee183676532a6bbee87ce173f02dd74d0881 /lib/netns_linux.c
parentf4d7bc0820f04df798eb208fcce5f5f7e4b18034 (diff)
parentba7eb55ec661e18156d9d390b196b6659d0a4752 (diff)
Merge pull request #5535 from opensourcerouting/santa-elf
*: cleanup elves were here
Diffstat (limited to 'lib/netns_linux.c')
-rw-r--r--lib/netns_linux.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c
index 55c66fdc3d..d1a31ae35f 100644
--- a/lib/netns_linux.c
+++ b/lib/netns_linux.c
@@ -51,7 +51,7 @@ static struct ns *ns_lookup_name_internal(const char *name);
RB_GENERATE(ns_head, ns, entry, ns_compare)
-struct ns_head ns_tree = RB_INITIALIZER(&ns_tree);
+static struct ns_head ns_tree = RB_INITIALIZER(&ns_tree);
static struct ns *default_ns;
static int ns_current_ns_fd;
@@ -74,7 +74,8 @@ static inline int ns_map_compare(const struct ns_map_nsid *a,
RB_HEAD(ns_map_nsid_head, ns_map_nsid);
RB_PROTOTYPE(ns_map_nsid_head, ns_map_nsid, id_entry, ns_map_compare);
RB_GENERATE(ns_map_nsid_head, ns_map_nsid, id_entry, ns_map_compare);
-struct ns_map_nsid_head ns_map_nsid_list = RB_INITIALIZER(&ns_map_nsid_list);
+static struct ns_map_nsid_head ns_map_nsid_list =
+ RB_INITIALIZER(&ns_map_nsid_list);
static ns_id_t ns_id_external_numbering;
@@ -123,7 +124,7 @@ static int have_netns(void)
}
/* Holding NS hooks */
-struct ns_master {
+static struct ns_master {
int (*ns_new_hook)(struct ns *ns);
int (*ns_delete_hook)(struct ns *ns);
int (*ns_enable_hook)(struct ns *ns);