]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix nexthop_group_nexthop_num_no_recurse() is static 14947/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 27 Nov 2023 08:25:59 +0000 (09:25 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 5 Dec 2023 12:59:25 +0000 (13:59 +0100)
No need to declare 'nexthop_group_nexthop_num_no_recurse()' as external.

Fixes: 98cda54a9543 ("zebra: Add recursive functionality to NHE's")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/nexthop_group.c
lib/nexthop_group.h

index 9abd3139fd9cf503ee10bfb94212dd97c09cbb96..d1fd526d6e279eae38ebea516a30ab7ce3b20177 100644 (file)
@@ -81,7 +81,8 @@ uint8_t nexthop_group_nexthop_num(const struct nexthop_group *nhg)
        return num;
 }
 
-uint8_t nexthop_group_nexthop_num_no_recurse(const struct nexthop_group *nhg)
+static uint8_t
+nexthop_group_nexthop_num_no_recurse(const struct nexthop_group *nhg)
 {
        struct nexthop *nhop;
        uint8_t num = 0;
index 88f9c62ccb922146f660f7b574559faf52852986..822a35439cc08703a68b4a2a3bedc3e80fd39899 100644 (file)
@@ -151,8 +151,6 @@ extern void nexthop_group_json_nexthop(json_object *j,
 /* Return the number of nexthops in this nhg */
 extern uint8_t nexthop_group_nexthop_num(const struct nexthop_group *nhg);
 extern uint8_t
-nexthop_group_nexthop_num_no_recurse(const struct nexthop_group *nhg);
-extern uint8_t
 nexthop_group_active_nexthop_num(const struct nexthop_group *nhg);
 
 extern bool nexthop_group_has_label(const struct nexthop_group *nhg);