]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_fpm_protobuf.c
lib: ZEBRA_NUM_OF -> array_size
[mirror_frr.git] / zebra / zebra_fpm_protobuf.c
index be0f6a23be74224f4a83756306b5b30e784d4323..0f95c9ba8b7661e7c9065769994ae57915f758cd 100644 (file)
@@ -176,7 +176,7 @@ static Fpm__AddRoute *create_add_route_message(qpb_allocator_t *allocator,
                if (num_nhs >= multipath_num)
                        break;
 
-               if (num_nhs >= ZEBRA_NUM_OF(nexthops))
+               if (num_nhs >= array_size(nexthops))
                        break;
 
                if (nexthop->type == NEXTHOP_TYPE_BLACKHOLE) {