summaryrefslogtreecommitdiffstats
path: root/lib/netns_linux.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-02-13 10:03:43 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commitc485b14bdc0d8e1fb2d6ad19057bf328e4118cfd (patch)
treed8a207c59e70799db7b91836cf651438a4408c2b /lib/netns_linux.c
parentlib: add debug guard for ns informational traces (diff)
downloadfrr-c485b14bdc0d8e1fb2d6ad19057bf328e4118cfd.tar.xz
frr-c485b14bdc0d8e1fb2d6ad19057bf328e4118cfd.zip
lib: netns checkstyle fix
A space is appended between RB_FOREACH and ' ', to comply with style practiced in frr. 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 c14d2ea4b..c2282f844 100644
--- a/lib/netns_linux.c
+++ b/lib/netns_linux.c
@@ -130,7 +130,7 @@ static struct ns *ns_lookup_name_internal(const char *name)
{
struct ns *ns = NULL;
- RB_FOREACH(ns, ns_head, &ns_tree) {
+ RB_FOREACH (ns, ns_head, &ns_tree) {
if (ns->name != NULL) {
if (strcmp(name, ns->name) == 0)
return ns;
@@ -328,7 +328,7 @@ void ns_walk_func(int (*func)(struct ns *))
{
struct ns *ns = NULL;
- RB_FOREACH(ns, ns_head, &ns_tree)
+ RB_FOREACH (ns, ns_head, &ns_tree)
func(ns);
}