Skip to content

Commit

Permalink
Fix dccp_sum_coverage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian McDonald authored and David S. Miller committed Jul 11, 2007
1 parent b2f41ff commit e961811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/dccp/dccp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
Expand Down

0 comments on commit e961811

Please sign in to comment.