diff options
author | Harsha Sharma <harshasharmaiitr@gmail.com> | 2017-10-06 20:17:54 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-09 15:27:38 +0200 |
commit | 1a7429bc152ed3a5368c4024f6b8e489c02ae322 (patch) | |
tree | ddaf2d36b4476b2e90a4dfe560c85ba9a856f5c8 /src/evaluate.c | |
parent | 31933bdfdc38e782d5afd4b52d83e424162827c3 (diff) |
nftables: make pointers in string arrays constant
Static const char * array should be static const char *
const array as per linux-kernel coding style.
Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/evaluate.c')
-rw-r--r-- | src/evaluate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evaluate.c b/src/evaluate.c index 193ea1c7..618e1889 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -32,7 +32,7 @@ static int expr_evaluate(struct eval_ctx *ctx, struct expr **expr); -static const char *byteorder_names[] = { +static const char * const byteorder_names[] = { [BYTEORDER_INVALID] = "invalid", [BYTEORDER_HOST_ENDIAN] = "host endian", [BYTEORDER_BIG_ENDIAN] = "big endian", @@ -3423,7 +3423,7 @@ static int cmd_evaluate_export(struct eval_ctx *ctx, struct cmd *cmd) ctx->debug_mask & DEBUG_NETLINK, ctx->octx); } -static const char *cmd_op_name[] = { +static const char * const cmd_op_name[] = { [CMD_INVALID] = "invalid", [CMD_ADD] = "add", [CMD_REPLACE] = "replace", |