summaryrefslogtreecommitdiffstats
path: root/lib/netns_linux.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-03-26 17:06:49 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-04-13 16:40:32 +0200
commit1ea16e093742163d3ef33d6b3a9e16198345b4a5 (patch)
tree49e4b5f9aea5be745f2f85784201146cebec56f3 /lib/netns_linux.c
parentzebra: add an indirection table for ns_id (diff)
downloadfrr-1ea16e093742163d3ef33d6b3a9e16198345b4a5.tar.xz
frr-1ea16e093742163d3ef33d6b3a9e16198345b4a5.zip
lib: Update netns_linux.c
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/netns_linux.c')
-rw-r--r--lib/netns_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c
index c215b4151..e0ef72f1c 100644
--- a/lib/netns_linux.c
+++ b/lib/netns_linux.c
@@ -65,7 +65,7 @@ struct ns_map_nsid {
ns_id_t ns_id;
};
-static __inline int ns_map_compare(const struct ns_map_nsid *a,
+static inline int ns_map_compare(const struct ns_map_nsid *a,
const struct ns_map_nsid *b)
{
return (a->ns_id - b->ns_id);
@@ -288,7 +288,7 @@ static struct ns_map_nsid *ns_map_nsid_lookup_by_nsid(ns_id_t ns_id)
struct ns_map_nsid ns_map;
ns_map.ns_id = ns_id;
- return (RB_FIND(ns_map_nsid_head, &ns_map_nsid_list, &ns_map));
+ return RB_FIND(ns_map_nsid_head, &ns_map_nsid_list, &ns_map);
}
ns_id_t ns_map_nsid_with_external(ns_id_t ns_id, bool maporunmap)