]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: fix "const static" declaration
authorThomas Haller <thaller@redhat.com>
Tue, 29 Aug 2023 18:54:07 +0000 (20:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Sep 2025 20:47:56 +0000 (22:47 +0200)
commitb606d4e113a0179a58be4a4a567ef710b6f3052a
treec71ba62abda0f25676c97efb59b963402746a172
parent5ad7a3b3ac89aaa45ac0d49a33f012c122862074
rule: fix "const static" declaration

commit 06810e15bcfea356ccecde9317dd860b0f29df06 upstream.

Gcc warns against this with "-Wextra":

    src/rule.c:869:1: error: static is not at beginning of declaration [-Werror=old-style-declaration]
      869 | const static struct prio_tag std_prios[] = {
          | ^~~~~
    src/rule.c:878:1: error: static is not at beginning of declaration [-Werror=old-style-declaration]
      878 | const static struct prio_tag bridge_std_prios[] = {
          | ^~~~~

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c