summaryrefslogtreecommitdiff
path: root/pimd/pim_routemap.c
diff options
context:
space:
mode:
authorwhitespace / reindent <invalid@invalid.invalid>2017-08-09 11:49:42 +0200
committerwhitespace / reindent <invalid@invalid.invalid>2017-08-09 12:03:17 +0200
commitac4d0be5874fafd14212d6007fff7495edc9b152 (patch)
tree5e2f0d3189de928c849f9983406389ade3b098cb /pimd/pim_routemap.c
parent76a86854181c27819e5cf71b12ae1fa5ccd9e02a (diff)
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_routemap.c')
-rw-r--r--pimd/pim_routemap.c56
1 files changed, 25 insertions, 31 deletions
diff --git a/pimd/pim_routemap.c b/pimd/pim_routemap.c
index a8525b690e..721e96c01c 100644
--- a/pimd/pim_routemap.c
+++ b/pimd/pim_routemap.c
@@ -28,55 +28,49 @@
#include "pimd.h"
-static void
-pim_route_map_mark_update (const char *rmap_name)
+static void pim_route_map_mark_update(const char *rmap_name)
{
- // placeholder
- return;
+ // placeholder
+ return;
}
-static void
-pim_route_map_add (const char *rmap_name)
+static void pim_route_map_add(const char *rmap_name)
{
- if (route_map_mark_updated(rmap_name, 0) == 0)
- pim_route_map_mark_update(rmap_name);
+ if (route_map_mark_updated(rmap_name, 0) == 0)
+ pim_route_map_mark_update(rmap_name);
- route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_ADDED);
+ route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_ADDED);
}
-static void
-pim_route_map_delete (const char *rmap_name)
+static void pim_route_map_delete(const char *rmap_name)
{
- if (route_map_mark_updated(rmap_name, 1) == 0)
- pim_route_map_mark_update(rmap_name);
+ if (route_map_mark_updated(rmap_name, 1) == 0)
+ pim_route_map_mark_update(rmap_name);
- route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_DELETED);
+ route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_DELETED);
}
-static void
-pim_route_map_event (route_map_event_t event, const char *rmap_name)
+static void pim_route_map_event(route_map_event_t event, const char *rmap_name)
{
- if (route_map_mark_updated(rmap_name, 0) == 0)
- pim_route_map_mark_update(rmap_name);
+ if (route_map_mark_updated(rmap_name, 0) == 0)
+ pim_route_map_mark_update(rmap_name);
- route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_ADDED);
+ route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_ADDED);
}
-void
-pim_route_map_init (void)
+void pim_route_map_init(void)
{
- route_map_init ();
+ route_map_init();
- route_map_add_hook (pim_route_map_add);
- route_map_delete_hook (pim_route_map_delete);
- route_map_event_hook (pim_route_map_event);
+ route_map_add_hook(pim_route_map_add);
+ route_map_delete_hook(pim_route_map_delete);
+ route_map_event_hook(pim_route_map_event);
}
-void
-pim_route_map_terminate (void)
+void pim_route_map_terminate(void)
{
- route_map_add_hook (NULL);
- route_map_delete_hook (NULL);
- route_map_event_hook (NULL);
- route_map_finish();
+ route_map_add_hook(NULL);
+ route_map_delete_hook(NULL);
+ route_map_event_hook(NULL);
+ route_map_finish();
}