Skip to content

Commit

Permalink
sctp: fix sctp_setsockopt_autoclose compile warning
Browse files Browse the repository at this point in the history
Fix the following warning, when building on 64 bits:

net/sctp/socket.c:2091: warning: large integer implicitly
                        truncated to unsigned type

Signed-off-by: Andrei Pelinescu-Onciul <andrei@iptel.org>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andrei Pelinescu-Onciul authored and David S. Miller committed Dec 2, 2009
1 parent acb3cec commit 810c071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2088,7 +2088,7 @@ static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval,
return -EFAULT;
/* make sure it won't exceed MAX_SCHEDULE_TIMEOUT */
if (sp->autoclose > (MAX_SCHEDULE_TIMEOUT / HZ) )
sp->autoclose = MAX_SCHEDULE_TIMEOUT / HZ ;
sp->autoclose = (__u32)(MAX_SCHEDULE_TIMEOUT / HZ) ;

return 0;
}
Expand Down

0 comments on commit 810c071

Please sign in to comment.