diff options
author | Patrick McHardy <kaber@trash.net> | 2012-08-19 10:16:09 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-20 12:45:57 +0200 |
commit | fe31d1a8605f020eee859375fdd877186e01b804 (patch) | |
tree | 96a1c10bd4a9a1736a4d0c25f133695dd88c52c7 /net/netfilter/xt_osf.c | |
parent | 19e303d67dc2e68a7f14b0baf7949195d7327145 (diff) | |
download | op-kernel-dev-fe31d1a8605f020eee859375fdd877186e01b804.zip op-kernel-dev-fe31d1a8605f020eee859375fdd877186e01b804.tar.gz |
netfilter: sparse endian fixes
Fix a couple of endian annotation in net/netfilter:
net/netfilter/nfnetlink_acct.c:82:30: warning: cast to restricted __be64
net/netfilter/nfnetlink_acct.c:86:30: warning: cast to restricted __be64
net/netfilter/nfnetlink_cthelper.c:77:28: warning: cast to restricted __be16
net/netfilter/xt_NFQUEUE.c:46:16: warning: restricted __be32 degrades to integer
net/netfilter/xt_NFQUEUE.c:60:34: warning: restricted __be32 degrades to integer
net/netfilter/xt_NFQUEUE.c:68:34: warning: restricted __be32 degrades to integer
net/netfilter/xt_osf.c:272:55: warning: cast to restricted __be16
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_osf.c')
-rw-r--r-- | net/netfilter/xt_osf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c index 846f895..a5e673d 100644 --- a/net/netfilter/xt_osf.c +++ b/net/netfilter/xt_osf.c @@ -269,7 +269,7 @@ xt_osf_match_packet(const struct sk_buff *skb, struct xt_action_param *p) mss <<= 8; mss |= optp[2]; - mss = ntohs(mss); + mss = ntohs((__force __be16)mss); break; case OSFOPT_TS: loop_cont = 1; |