Merge pull request #14947 from pguibert6WIND/nexthop_num_no_recurse_static

lib: fix nexthop_group_nexthop_num_no_recurse() is static
This commit is contained in:
Russ White 2023-12-05 11:55:21 -05:00 committed by GitHub
commit edb1cb8dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View 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;

View 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);