Skip to contentSkip to conversation

Fix dccp_sum_coverage

PATCH In review Arnaldo Carvalho de Melo 1 participant 1 message Jun 16, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 2/10 Fix dccp_sum_coverage

When compiling with EXTRA_CFLAGS=-W notice that we have signed/unsigned issue in dccp.h.

---
 net/dccp/dccp.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/dccp/dccp.h +2 -2
index d8ad27b..e2d74cd 100644
@@ -184,7 +184,7 @@ DECLARE_SNMP_STAT(struct dccp_mib, dccp_statistics);
 /*
  * 	Checksumming routines
  */
-static inline int dccp_csum_coverage(const struct sk_buff *skb)
+static inline unsigned int dccp_csum_coverage(const struct sk_buff *skb)
 {
 	const struct dccp_hdr* dh = dccp_hdr(skb);
 
@@ -195,7 +195,7 @@ static inline int dccp_csum_coverage(const struct sk_buff *skb)
 
 static inline void dccp_csum_outgoing(struct sk_buff *skb)
 {
-	int cov = dccp_csum_coverage(skb);
+	unsigned int cov = dccp_csum_coverage(skb);
 
 	if (cov >= skb->len)
 		dccp_hdr(skb)->dccph_cscov = 0;
Signature · 1 line
1.5.0.6