diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-09-02 10:02:28 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-09-02 10:02:28 +0000 |
commit | b8ea431f5620e8fb2b9f4ee9f8ce16fa423ab572 (patch) | |
tree | ee0cc73af8fa9a37ef545ae3ba81d560effe6efc /src/expect | |
parent | 8264f7e91bb196c100e6e13249ce770dab8e9e43 (diff) |
The getters have to point to the right sized types, otherwise they don't work on big-endian. Philip Craig <philipc@snapgear.com>
Diffstat (limited to 'src/expect')
-rw-r--r-- | src/expect/api.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |