]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Replace uint with u32
authorIgor Putovny <igor.putovny@nic.cz>
Fri, 7 Mar 2025 12:53:56 +0000 (13:53 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Fri, 7 Mar 2025 12:53:56 +0000 (13:53 +0100)
proto/aggregator/aggregator.c
proto/aggregator/aggregator.h

index dc814e0e6586b0f4daac1c9d8944f2c9a80f34de..9bb180519cdd2fb8187660349e91d22e0cbdeb5e 100644 (file)
@@ -210,7 +210,7 @@ aggregator_rta_set_static_attr(struct rta *rta, const struct rta *old, struct f_
 static int
 same_val_list(const struct f_val *v1, const struct f_val *v2, uint len)
 {
-  for (uint i = 0; i < len; i++)
+  for (u32 i = 0; i < len; i++)
     if (!val_same(&v1[i], &v2[i]))
       return 0;
 
@@ -243,7 +243,7 @@ aggregator_bucket_update(struct aggregator_proto *p, struct aggregator_bucket *b
   rta->eattrs = eal;
 
   /* Seed the attributes from aggregator rule */
-  for (uint i = 0; i < p->aggr_on_count; i++)
+  for (u32 i = 0; i < p->aggr_on_count; i++)
   {
     if (p->aggr_on[i].type == AGGR_ITEM_DYNAMIC_ATTR)
     {
@@ -531,7 +531,7 @@ aggregator_rt_notify(struct proto *P, struct channel *src_ch, net *net, rte *new
     struct aggregator_bucket *tmp_bucket = allocz(sizeof(*tmp_bucket) + sizeof(tmp_bucket->aggr_data[0]) * p->aggr_on_count);
     ASSERT_DIE(tmp_bucket->id == 0);
 
-    for (uint val_idx = 0; val_idx < p->aggr_on_count; val_idx++)
+    for (u32 val_idx = 0; val_idx < p->aggr_on_count; val_idx++)
     {
       int type = p->aggr_on[val_idx].type;
 
@@ -575,7 +575,7 @@ aggregator_rt_notify(struct proto *P, struct channel *src_ch, net *net, rte *new
     u64 haux;
     mem_hash_init(&haux);
 
-    for (uint i = 0; i < p->aggr_on_count; i++)
+    for (u32 i = 0; i < p->aggr_on_count; i++)
     {
       mem_hash_mix_num(&haux, tmp_bucket->aggr_data[i].type);
 
@@ -945,7 +945,7 @@ aggregator_reconfigure(struct proto *P, struct proto_config *CF)
     return 0;
 
   /* Compare aggregator rule */
-  for (uint i = 0; i < p->aggr_on_count; i++)
+  for (u32 i = 0; i < p->aggr_on_count; i++)
   {
     switch (cf->aggr_on[i].type)
     {
index e6f1e134b2651cf76ca62c60ae48890e3f4b837a..fda4fe199186d686a78feb436bb7ca72fdd881f7 100644 (file)
@@ -32,8 +32,8 @@ struct aggregator_config {
   struct proto_config c;
   struct channel_config *src, *dst;
   enum aggregation_mode aggr_mode;
-  uint aggr_on_count;
-  uint aggr_on_da_count;
+  u32 aggr_on_count;
+  u32 aggr_on_da_count;
   struct aggr_item *aggr_on;
   const struct f_line *merge_by;
   int logging;
@@ -75,8 +75,8 @@ struct aggregator_proto {
   linpool *route_pool;
 
   /* Aggregator rule */
-  uint aggr_on_count;
-  uint aggr_on_da_count;
+  u32 aggr_on_count;
+  u32 aggr_on_da_count;
   struct aggr_item *aggr_on;
 
   /* Merge filter */
@@ -84,7 +84,7 @@ struct aggregator_proto {
   event reload_buckets;
 
   /* Aggregation trie */
-  uint addr_type;
+  u32 addr_type;
   struct slab *trie_slab;
   struct trie_node *root;
   int logging;