From: Igor Putovny Date: Mon, 27 Jan 2025 15:35:33 +0000 (+0100) Subject: Move static variable to the top X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=766090f8c8123229b2e69830d2b725ccc3007478;p=thirdparty%2Fbird.git Move static variable to the top --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index fc073aa14..e4131a159 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -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;