]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Move static variable to the top
authorIgor Putovny <igor.putovny@nic.cz>
Mon, 27 Jan 2025 15:35:33 +0000 (16:35 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Mon, 27 Jan 2025 15:35:33 +0000 (16:35 +0100)
proto/aggregator/aggregator.c

index fc073aa145ba06e8de9b57522687b9a7558348d8..e4131a1595f2c074cde5501206acf2fed65c12c8 100644 (file)
@@ -99,6 +99,12 @@ static int removed_nodes;
 static int one_child_nodes_1;
 static int one_child_nodes_2;
 
+static const char *px_origin_str[] = {
+  [FILLER]     = "filler",
+  [ORIGINAL]   = "original",
+  [AGGREGATED] = "aggregated",
+};
+
 static inline int
 is_leaf(const struct trie_node *node)
 {
@@ -1036,12 +1042,6 @@ 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;