netfilter: nft_nat: Fix endianness issue reported by sparse
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 28 Oct 2013 10:19:45 +0000 (12:19 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Oct 2013 16:41:49 +0000 (17:41 +0100)
commit98c37b6b01812d331db4d49cacd603891d0d53ba
tree60e0a8e535e10ca1e16b798c5d5384c77d39031d
parent6e078bc2f2406ccbb986a9922cc80ae8ca7abca3
netfilter: nft_nat: Fix endianness issue reported by sparse

This patch fixes this:

CHECK   net/netfilter/nft_nat.c
net/netfilter/nft_nat.c:50:43: warning: incorrect type in assignment (different base types)
net/netfilter/nft_nat.c:50:43:    expected restricted __be32 [addressable] [usertype] ip
net/netfilter/nft_nat.c:50:43:    got unsigned int [unsigned] [usertype] <noident>
net/netfilter/nft_nat.c:51:43: warning: incorrect type in assignment (different base types)
net/netfilter/nft_nat.c:51:43:    expected restricted __be32 [addressable] [usertype] ip
net/netfilter/nft_nat.c:51:43:    got unsigned int [unsigned] [usertype] <noident>
net/netfilter/nft_nat.c:65:37: warning: incorrect type in assignment (different base types)
net/netfilter/nft_nat.c:65:37:    expected restricted __be16 [addressable] [assigned] [usertype] all
net/netfilter/nft_nat.c:65:37:    got unsigned int [unsigned] <noident>
net/netfilter/nft_nat.c:66:37: warning: incorrect type in assignment (different base types)
net/netfilter/nft_nat.c:66:37:    expected restricted __be16 [addressable] [assigned] [usertype] all
net/netfilter/nft_nat.c:66:37:    got unsigned int [unsigned] <noident>

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_nat.c
This page took 0.024393 seconds and 5 git commands to generate.