diff options
-rw-r--r-- | lib/netns_linux.c | 4 |
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) |