]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Don't expose a function that is never used
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 Jun 2018 01:12:11 +0000 (21:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 Jun 2018 01:22:46 +0000 (21:22 -0400)
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 <sharpd@cumulusnetworks.com>
lib/routemap.c
lib/routemap.h

index 4601da759da2815405a7bffc33dbd20b4d652759..b2c19295076d4cceeb630f883802bea2ea23cf53 100644 (file)
@@ -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;
 
index 4ec4ce1a0aaaeb201f88b4a8bf864c361e1b2b30..e653a8a78872bd85ef5f24319356d2148aa64033 100644 (file)
@@ -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);