From 69f02720836c75a53f05e6acd4a5bad459db7258 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 Jun 2018 21:12:11 -0400 Subject: [PATCH] lib: Don't expose a function that is never used route_map_clear_updated is only used by routemap.c, don't expose it too be used by the outside world. Signed-off-by: Donald Sharp --- lib/routemap.c | 2 +- lib/routemap.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/routemap.c b/lib/routemap.c index 4601da759d..b2c1929507 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -781,7 +781,7 @@ int route_map_mark_updated(const char *name) return (ret); } -int route_map_clear_updated(struct route_map *map) +static int route_map_clear_updated(struct route_map *map) { int ret = -1; diff --git a/lib/routemap.h b/lib/routemap.h index 4ec4ce1a0a..e653a8a788 100644 --- a/lib/routemap.h +++ b/lib/routemap.h @@ -216,7 +216,6 @@ extern void route_map_add_hook(void (*func)(const char *)); extern void route_map_delete_hook(void (*func)(const char *)); extern void route_map_event_hook(void (*func)(route_map_event_t, const char *)); extern int route_map_mark_updated(const char *name); -extern int route_map_clear_updated(struct route_map *rmap); 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); -- 2.39.5