mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
ospf6d: Make ospf6d happy with clang-16
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
3ca6d7300b
commit
b6ce3356d9
@ -1360,7 +1360,7 @@ static void ospf6_route_show_table_summary(struct vty *vty,
|
|||||||
struct ospf6_route *route, *prev = NULL;
|
struct ospf6_route *route, *prev = NULL;
|
||||||
int i, pathtype[OSPF6_PATH_TYPE_MAX];
|
int i, pathtype[OSPF6_PATH_TYPE_MAX];
|
||||||
unsigned int number = 0;
|
unsigned int number = 0;
|
||||||
int nh_count = 0, nhinval = 0, ecmp = 0;
|
int nh_count = 0, ecmp = 0;
|
||||||
int alternative = 0, destination = 0;
|
int alternative = 0, destination = 0;
|
||||||
char path_str[30];
|
char path_str[30];
|
||||||
|
|
||||||
@ -1374,9 +1374,7 @@ static void ospf6_route_show_table_summary(struct vty *vty,
|
|||||||
else
|
else
|
||||||
alternative++;
|
alternative++;
|
||||||
nh_count = ospf6_num_nexthops(route->nh_list);
|
nh_count = ospf6_num_nexthops(route->nh_list);
|
||||||
if (!nh_count)
|
if (nh_count > 1)
|
||||||
nhinval++;
|
|
||||||
else if (nh_count > 1)
|
|
||||||
ecmp++;
|
ecmp++;
|
||||||
pathtype[route->path.type]++;
|
pathtype[route->path.type]++;
|
||||||
number++;
|
number++;
|
||||||
|
Loading…
Reference in New Issue
Block a user