Skip to content

Commit

Permalink
lib: fix nexthop_group_nexthop_num_no_recurse() is static
Browse files Browse the repository at this point in the history
No need to declare 'nexthop_group_nexthop_num_no_recurse()' as external.

Fixes: 98cda54 ("zebra: Add recursive functionality to NHE's")

Signed-off-by: Philippe Guibert <[email protected]>
  • Loading branch information
pguibert6WIND committed Dec 5, 2023
1 parent 3f4c682 commit 66f08b3
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 66f08b3

Please sign in to comment.