Skip to content

Commit

Permalink
Merge pull request #14947 from pguibert6WIND/nexthop_num_no_recurse_s…
Browse files Browse the repository at this point in the history
…tatic

lib: fix nexthop_group_nexthop_num_no_recurse() is static
  • Loading branch information
riw777 authored Dec 5, 2023
2 parents ad80021 + 66f08b3 commit edb1cb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/nexthop_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions lib/nexthop_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edb1cb8

Please sign in to comment.