diff options
author | Ian McDonald <ian.mcdonald@jandi.co.nz> | 2007-05-28 15:32:26 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:15:05 -0400 |
commit | e961811fcde4202ae5c3c9ce81dcfc244e8959bb (patch) | |
tree | 8d289d7c5c4f0724e454170b16fb42889587d541 /net/dccp/dccp.h | |
parent | b2f41ff4139c0df8d06f352acc962a62fc07a0c3 (diff) |
Fix dccp_sum_coverage
When compiling with EXTRA_CFLAGS=-W notice that we have signed/unsigned issue
in dccp.h.
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r-- | net/dccp/dccp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index d8ad27bfe01a..e2d74cd7eeeb 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
@@ -184,7 +184,7 @@ DECLARE_SNMP_STAT(struct dccp_mib, dccp_statistics); | |||
184 | /* | 184 | /* |
185 | * Checksumming routines | 185 | * Checksumming routines |
186 | */ | 186 | */ |
187 | static inline int dccp_csum_coverage(const struct sk_buff *skb) | 187 | static inline unsigned int dccp_csum_coverage(const struct sk_buff *skb) |
188 | { | 188 | { |
189 | const struct dccp_hdr* dh = dccp_hdr(skb); | 189 | const struct dccp_hdr* dh = dccp_hdr(skb); |
190 | 190 | ||
@@ -195,7 +195,7 @@ static inline int dccp_csum_coverage(const struct sk_buff *skb) | |||
195 | 195 | ||
196 | static inline void dccp_csum_outgoing(struct sk_buff *skb) | 196 | static inline void dccp_csum_outgoing(struct sk_buff *skb) |
197 | { | 197 | { |
198 | int cov = dccp_csum_coverage(skb); | 198 | unsigned int cov = dccp_csum_coverage(skb); |
199 | 199 | ||
200 | if (cov >= skb->len) | 200 | if (cov >= skb->len) |
201 | dccp_hdr(skb)->dccph_cscov = 0; | 201 | dccp_hdr(skb)->dccph_cscov = 0; |