]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Rename
authorIgor Putovny <igor.putovny@nic.cz>
Fri, 24 Jan 2025 13:58:54 +0000 (14:58 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Fri, 24 Jan 2025 13:58:54 +0000 (14:58 +0100)
proto/aggregator/aggregator.c

index 03290575d7e989edb53a4a1237b670fdd2428fcf..a60de6c9524deb48db78e0f6afd8059b9ed9e85d 100644 (file)
@@ -899,6 +899,12 @@ dump_trie_helper(const struct trie_node *node, struct net_addr_ip4 *addr, struct
   assert(node != NULL);
   assert(addr != NULL);
 
+  static const char *px_origin_str[] = {
+    [ORIGINAL]   = "original",
+    [AGGREGATED] = "aggregated",
+    [FILLER]     = "filler",
+  };
+
   memset(buf->start, 0, buf->pos - buf->start);
   buf->pos = buf->start;
 
@@ -930,13 +936,7 @@ dump_trie_helper(const struct trie_node *node, struct net_addr_ip4 *addr, struct
   if (node->selected_bucket)
     buffer_print(buf, " -> [[%u]]", node->selected_bucket->id);
 
-  static const char *origin_str[] = {
-    [ORIGINAL]   = "original",
-    [AGGREGATED] = "aggregated",
-    [FILLER]     = "filler",
-  };
-
-  buffer_print(buf, " %p %s", node, origin_str[node->px_origin]);
+  buffer_print(buf, " %p %s", node, px_origin_str[node->px_origin]);
   log("%s", buf->start);
 
   if (node->child[0])