From f9700f17b081fda3887cac5a6820a5da1d2e0fd6 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 9 May 2016 23:05:53 +0200 Subject: src: missing static in several array definitions They are not used out of the scope of the C file where they are defined, so we can statify them. Signed-off-by: Pablo Neira Ayuso --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 089446c..22710b9 100644 --- a/src/utils.c +++ b/src/utils.c @@ -201,7 +201,7 @@ enum nftnl_cmd_type nftnl_flag2cmd(uint32_t flags) return NFTNL_CMD_UNSPEC; } -const char *cmd2tag[NFTNL_CMD_MAX] = { +static const char *cmd2tag[NFTNL_CMD_MAX] = { [NFTNL_CMD_ADD] = ADD, [NFTNL_CMD_INSERT] = INSERT, [NFTNL_CMD_DELETE] = DELETE, -- cgit v1.2.3