From 66f08b3e15709b10912407a35a6cc99dbc494b6f Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 27 Nov 2023 09:25:59 +0100 Subject: [PATCH] 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 --- lib/nexthop_group.c | 3 ++- 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); -- 2.39.5