diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-11-27 09:25:59 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-12-05 13:59:25 +0100 |
| commit | 66f08b3e15709b10912407a35a6cc99dbc494b6f (patch) | |
| tree | 9d2be16adc1c9f627de7e1d7e74c317370a7530f /lib | |
| parent | 3f4c682e48614174af5f19ed440919b8a3267fba (diff) | |
lib: fix nexthop_group_nexthop_num_no_recurse() is static
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>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/nexthop_group.c | 3 | ||||
| -rw-r--r-- | lib/nexthop_group.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index 9abd3139fd..d1fd526d6e 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -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; diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h index 88f9c62ccb..822a35439c 100644 --- a/lib/nexthop_group.h +++ b/lib/nexthop_group.h @@ -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); |
