summaryrefslogtreecommitdiffstats
path: root/lib/mnl.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-12-19 05:56:19 +0100
committerJan Engelhardt <jengelh@medozas.de>2010-12-19 06:12:23 +0100
commit404c46381d01088867fdcd92ea6b97978f4c95a7 (patch)
tree6edd126f56509f3b936d795e983f6866d079c21a /lib/mnl.c
parent8673a740e4279e553e31e1b82ac8e4061ab5dc6f (diff)
libipset: const annotations
Diffstat (limited to 'lib/mnl.c')
-rw-r--r--lib/mnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnl.c b/lib/mnl.c
index aa98a7c..683dba2 100644
--- a/lib/mnl.c
+++ b/lib/mnl.c
@@ -31,7 +31,7 @@ struct ipset_handle {
};
/* Netlink flags of the commands */
-static uint16_t cmdflags[] = {
+static const uint16_t cmdflags[] = {
[IPSET_CMD_CREATE-1] = NLM_F_REQUEST|NLM_F_ACK|NLM_F_CREATE|NLM_F_EXCL,
[IPSET_CMD_DESTROY-1] = NLM_F_REQUEST|NLM_F_ACK,
[IPSET_CMD_FLUSH-1] = NLM_F_REQUEST|NLM_F_ACK,