diff options
author | David Lamparter <equinox@diac24.net> | 2019-11-27 21:17:57 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-12-13 06:22:34 +0100 |
commit | 1b3e9a21dd4af572deed0d40dd26c8d041e94eae (patch) | |
tree | 11c64fb3a22924562484aac931d153c870627b13 /lib/netns_linux.c | |
parent | lib: completely get rid of the MTYPE alias hack (diff) | |
download | frr-1b3e9a21dd4af572deed0d40dd26c8d041e94eae.tar.xz frr-1b3e9a21dd4af572deed0d40dd26c8d041e94eae.zip |
lib: make some variables static
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/netns_linux.c')
-rw-r--r-- | lib/netns_linux.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c index 55c66fdc3..d1a31ae35 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); |