From: Donald Sharp Date: Wed, 20 Jun 2018 01:12:11 +0000 (-0400) Subject: lib: Don't expose a function that is never used X-Git-Tag: frr-6.1-dev~285^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=69f02720836c75a53f05e6acd4a5bad459db7258;p=matthieu%2Ffrr.git 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 --- 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);