summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/expr/byteorder.c2
-rw-r--r--src/expr/cmp.c2
-rw-r--r--src/expr/dynset.c2
-rw-r--r--src/expr/payload.c2
-rw-r--r--src/expr/range.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 4777c5e..2b74e52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ AS_IF([test "x$with_json_parsing" = "xyes"], [
])
regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
-Wmissing-prototypes -Wshadow -Wstrict-prototypes \
- -Wformat=2 -pipe"
+ -Wformat=2 -Wwrite-strings -pipe"
AC_SUBST([regular_CPPFLAGS])
AC_SUBST([regular_CFLAGS])
AC_CONFIG_FILES([Makefile src/Makefile include/Makefile include/libnftnl/Makefile include/linux/Makefile include/linux/netfilter/Makefile examples/Makefile tests/Makefile libnftnl.pc doxygen.cfg])
diff --git a/src/expr/byteorder.c b/src/expr/byteorder.c
index 5f8e585..3805307 100644
--- a/src/expr/byteorder.c
+++ b/src/expr/byteorder.c
@@ -172,7 +172,7 @@ nftnl_expr_byteorder_parse(struct nftnl_expr *e, struct nlattr *attr)
return ret;
}
-static char *expr_byteorder_str[] = {
+static const char *expr_byteorder_str[] = {
[NFT_BYTEORDER_HTON] = "hton",
[NFT_BYTEORDER_NTOH] = "ntoh",
};
diff --git a/src/expr/cmp.c b/src/expr/cmp.c
index e7ed0db..353e907 100644
--- a/src/expr/cmp.c
+++ b/src/expr/cmp.c
@@ -139,7 +139,7 @@ nftnl_expr_cmp_parse(struct nftnl_expr *e, struct nlattr *attr)
return ret;
}
-static char *expr_cmp_str[] = {
+static const char *expr_cmp_str[] = {
[NFT_CMP_EQ] = "eq",
[NFT_CMP_NEQ] = "neq",
[NFT_CMP_LT] = "lt",
diff --git a/src/expr/dynset.c b/src/expr/dynset.c
index 20a5004..f7b99ea 100644
--- a/src/expr/dynset.c
+++ b/src/expr/dynset.c
@@ -258,7 +258,7 @@ nftnl_expr_dynset_export(char *buf, size_t size,
return nftnl_buf_done(&b);
}
-static char *op2str_array[] = {
+static const char *op2str_array[] = {
[NFT_DYNSET_OP_ADD] = "add",
[NFT_DYNSET_OP_UPDATE] = "update",
};
diff --git a/src/expr/payload.c b/src/expr/payload.c
index d655857..91e1587 100644
--- a/src/expr/payload.c
+++ b/src/expr/payload.c
@@ -203,7 +203,7 @@ nftnl_expr_payload_parse(struct nftnl_expr *e, struct nlattr *attr)
return 0;
}
-static char *base2str_array[NFT_PAYLOAD_TRANSPORT_HEADER+1] = {
+static const char *base2str_array[NFT_PAYLOAD_TRANSPORT_HEADER+1] = {
[NFT_PAYLOAD_LL_HEADER] = "link",
[NFT_PAYLOAD_NETWORK_HEADER] = "network",
[NFT_PAYLOAD_TRANSPORT_HEADER] = "transport",
diff --git a/src/expr/range.c b/src/expr/range.c
index 1489d58..8c8ce12 100644
--- a/src/expr/range.c
+++ b/src/expr/range.c
@@ -159,7 +159,7 @@ nftnl_expr_range_parse(struct nftnl_expr *e, struct nlattr *attr)
return ret;
}
-static char *expr_range_str[] = {
+static const char *expr_range_str[] = {
[NFT_RANGE_EQ] = "eq",
[NFT_RANGE_NEQ] = "neq",
};