summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/conntrack/api.c6
-rw-r--r--src/expect/api.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/conntrack/api.c b/src/conntrack/api.c
index 245ced2..d020869 100644
--- a/src/conntrack/api.c
+++ b/src/conntrack/api.c
@@ -304,7 +304,7 @@ const void *nfct_get_attr(const struct nf_conntrack *ct,
u_int8_t nfct_get_attr_u8(const struct nf_conntrack *ct,
const enum nf_conntrack_attr type)
{
- const int *ret = nfct_get_attr(ct, type);
+ const u_int8_t *ret = nfct_get_attr(ct, type);
return ret == NULL ? 0 : *ret;
}
@@ -320,7 +320,7 @@ u_int8_t nfct_get_attr_u8(const struct nf_conntrack *ct,
u_int16_t nfct_get_attr_u16(const struct nf_conntrack *ct,
const enum nf_conntrack_attr type)
{
- const int *ret = nfct_get_attr(ct, type);
+ const u_int16_t *ret = nfct_get_attr(ct, type);
return ret == NULL ? 0 : *ret;
}
@@ -336,7 +336,7 @@ u_int16_t nfct_get_attr_u16(const struct nf_conntrack *ct,
u_int32_t nfct_get_attr_u32(const struct nf_conntrack *ct,
const enum nf_conntrack_attr type)
{
- const int *ret = nfct_get_attr(ct, type);
+ const u_int32_t *ret = nfct_get_attr(ct, type);
return ret == NULL ? 0 : *ret;
}
diff --git a/src/expect/api.c b/src/expect/api.c
index 5c3868c..eefc294 100644
--- a/src/expect/api.c
+++ b/src/expect/api.c
@@ -264,7 +264,7 @@ const void *nfexp_get_attr(const struct nf_expect *exp,
u_int8_t nfexp_get_attr_u8(const struct nf_expect *exp,
const enum nf_expect_attr type)
{
- const int *ret = nfexp_get_attr(exp, type);
+ const u_int8_t *ret = nfexp_get_attr(exp, type);
return ret == NULL ? 0 : *ret;
}
@@ -280,7 +280,7 @@ u_int8_t nfexp_get_attr_u8(const struct nf_expect *exp,
u_int16_t nfexp_get_attr_u16(const struct nf_expect *exp,
const enum nf_expect_attr type)
{
- const int *ret = nfexp_get_attr(exp, type);
+ const u_int16_t *ret = nfexp_get_attr(exp, type);
return ret == NULL ? 0 : *ret;
}
@@ -296,7 +296,7 @@ u_int16_t nfexp_get_attr_u16(const struct nf_expect *exp,
u_int32_t nfexp_get_attr_u32(const struct nf_expect *exp,
const enum nf_expect_attr type)
{
- const int *ret = nfexp_get_attr(exp, type);
+ const u_int32_t *ret = nfexp_get_attr(exp, type);
return ret == NULL ? 0 : *ret;
}