diff options
author | Samuel Gauthier <samuel.gauthier@6wind.com> | 2009-05-12 23:09:29 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-05-12 23:09:29 +0200 |
commit | 91bf01ee31b754bb17f612ee13685ef0ffe9baa8 (patch) | |
tree | 346dfcacee2d54c755a5904369824d5ce17a34a2 | |
parent | b808645ec71b7cc22cf5106b3d79625d07e6077c (diff) | |
download | conntrack-tools-91bf01ee31b754bb17f612ee13685ef0ffe9baa8.tar.gz conntrack-tools-91bf01ee31b754bb17f612ee13685ef0ffe9baa8.zip |
build: use uint16_t instead of uint32_t for uint16_t attributes
Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c index a02a912..b2eeeee 100644 --- a/src/build.c +++ b/src/build.c @@ -51,7 +51,7 @@ __build_u8(const struct nf_conntrack *ct, int a, struct nethdr *n, int b) static inline void __build_u16(const struct nf_conntrack *ct, int a, struct nethdr *n, int b) { - uint32_t data = nfct_get_attr_u16(ct, a); + uint16_t data = nfct_get_attr_u16(ct, a); data = htons(data); addattr(n, b, &data, sizeof(uint16_t)); } |