summaryrefslogtreecommitdiffstats
path: root/src/expect
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-12-21 20:25:32 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-12-21 20:25:32 +0100
commite6ba25eb57957e6634d5e7cec539b1d6e4204b27 (patch)
tree2d41460ed6ac9c4ff56bc805dadad1455756f233 /src/expect
parent15102416c1e980a66ac49591f318f950173d77ea (diff)
parent28cd69119c5901938ca708dc66c3eeb357f3b38c (diff)
Merge branch 'master' of git://dev.medozas.de/libnetfilter_conntrack
Diffstat (limited to 'src/expect')
-rw-r--r--src/expect/getter.c2
-rw-r--r--src/expect/setter.c2
-rw-r--r--src/expect/snprintf_default.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/expect/getter.c b/src/expect/getter.c
index f2022d9..9cb6ede 100644
--- a/src/expect/getter.c
+++ b/src/expect/getter.c
@@ -37,7 +37,7 @@ static const void *get_exp_attr_flags(const struct nf_expect *exp)
return &exp->flags;
}
-get_exp_attr get_exp_attr_array[ATTR_EXP_MAX] = {
+const get_exp_attr get_exp_attr_array[ATTR_EXP_MAX] = {
[ATTR_EXP_MASTER] = get_exp_attr_master,
[ATTR_EXP_EXPECTED] = get_exp_attr_expected,
[ATTR_EXP_MASK] = get_exp_attr_mask,
diff --git a/src/expect/setter.c b/src/expect/setter.c
index 1270860..040b958 100644
--- a/src/expect/setter.c
+++ b/src/expect/setter.c
@@ -37,7 +37,7 @@ static void set_exp_attr_flags(struct nf_expect *exp, const void *value)
exp->flags = *((u_int32_t *) value);
}
-set_exp_attr set_exp_attr_array[ATTR_EXP_MAX] = {
+const set_exp_attr set_exp_attr_array[ATTR_EXP_MAX] = {
[ATTR_EXP_MASTER] = set_exp_attr_master,
[ATTR_EXP_EXPECTED] = set_exp_attr_expected,
[ATTR_EXP_MASK] = set_exp_attr_mask,
diff --git a/src/expect/snprintf_default.c b/src/expect/snprintf_default.c
index be8d267..a20a3ad 100644
--- a/src/expect/snprintf_default.c
+++ b/src/expect/snprintf_default.c
@@ -23,7 +23,7 @@ int __snprintf_expect_default(char *buf,
unsigned int flags)
{
int ret = 0, size = 0, offset = 0;
- char *delim = "";
+ const char *delim = "";
switch(msg_type) {
case NFCT_T_NEW: