]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Remove zebra_delete_rnh from being a public function 3569/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 4 Jan 2019 16:04:38 +0000 (11:04 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 4 Jan 2019 16:04:38 +0000 (11:04 -0500)
The zebra_delete_rnh function is not needed to be exposed
to the entire world.  Limit it's scope.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_rnh.c
zebra/zebra_rnh.h

index eb224722c3b072391f8bc1c3365a080852f96ddc..c3781888b1fba80a5d88a4e211cc911bf811cb2d 100644 (file)
@@ -178,7 +178,7 @@ void zebra_free_rnh(struct rnh *rnh)
        XFREE(MTYPE_RNH, rnh);
 }
 
-void zebra_delete_rnh(struct rnh *rnh, rnh_type_t type)
+static void zebra_delete_rnh(struct rnh *rnh, rnh_type_t type)
 {
        struct route_node *rn;
 
index 33302f0ee27dc5d083fc4123761edbbf63bbdab9..ed1fe9b756af54d1b30125d8b1f0a1d166dd4a6c 100644 (file)
@@ -72,7 +72,6 @@ extern struct rnh *zebra_add_rnh(struct prefix *p, vrf_id_t vrfid,
 extern struct rnh *zebra_lookup_rnh(struct prefix *p, vrf_id_t vrfid,
                                    rnh_type_t type);
 extern void zebra_free_rnh(struct rnh *rnh);
-extern void zebra_delete_rnh(struct rnh *rnh, rnh_type_t type);
 extern void zebra_add_rnh_client(struct rnh *rnh, struct zserv *client,
                                 rnh_type_t type, vrf_id_t vrfid);
 extern void zebra_register_rnh_pseudowire(vrf_id_t, struct zebra_pw *);