])
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])
return ret;
}
-static char *expr_byteorder_str[] = {
+static const char *expr_byteorder_str[] = {
[NFT_BYTEORDER_HTON] = "hton",
[NFT_BYTEORDER_NTOH] = "ntoh",
};
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",
return nftnl_buf_done(&b);
}
-static char *op2str_array[] = {
+static const char *op2str_array[] = {
[NFT_DYNSET_OP_ADD] = "add",
[NFT_DYNSET_OP_UPDATE] = "update",
};
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",
return ret;
}
-static char *expr_range_str[] = {
+static const char *expr_range_str[] = {
[NFT_RANGE_EQ] = "eq",
[NFT_RANGE_NEQ] = "neq",
};