From b8ea431f5620e8fb2b9f4ee9f8ce16fa423ab572 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Sun, 2 Sep 2007 10:02:28 +0000 Subject: The getters have to point to the right sized types, otherwise they don't work on big-endian. Philip Craig --- src/conntrack/api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/conntrack') 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; } -- cgit v1.2.3