summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/routemap.c5
-rw-r--r--lib/routemap.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 53df69dfcd..733e61c99b 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -323,8 +323,7 @@ route_map_get (const char *name)
}
void
-route_map_walk_update_list (void *arg,
- int (*route_map_update_fn) (void *arg, char *name))
+route_map_walk_update_list (int (*route_map_update_fn) (char *name))
{
struct route_map *node;
struct route_map *nnode = NULL;
@@ -334,7 +333,7 @@ route_map_walk_update_list (void *arg,
if (node->to_be_processed)
{
/* DD: Should we add any thread yield code here */
- route_map_update_fn(arg, node->name);
+ route_map_update_fn(node->name);
nnode = node->next;
route_map_clear_updated(node);
}
diff --git a/lib/routemap.h b/lib/routemap.h
index 5c0626bae4..a90966b383 100644
--- a/lib/routemap.h
+++ b/lib/routemap.h
@@ -217,9 +217,7 @@ extern void route_map_event_hook (void (*func) (route_map_event_t,
const char *));
extern int route_map_mark_updated (const char *name, int deleted);
extern int route_map_clear_updated (struct route_map *rmap);
-extern void route_map_walk_update_list (void *arg,
- int (*update_fn) (void *arg,
- char *name));
+extern void route_map_walk_update_list (int (*update_fn) (char *name));
extern void route_map_upd8_dependency (route_map_event_t type, const char *arg,
const char *rmap_name);
extern void route_map_notify_dependencies (const char *affected_name,