Fix a signed/unsigned warning showing up for the userland stack

on some platforms.
Thanks to Felix Weinrank for reporting the issue.

MFC after:i	3 days
This commit is contained in:
Michael Tuexen 2018-04-08 11:37:00 +00:00
parent f33fbc18f5
commit c3115feb7e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332269

View File

@ -2616,7 +2616,7 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset,
(sizeof(uint32_t))));
diff = now;
timevalsub(&diff, &time_expires);
if (diff.tv_sec > UINT32_MAX / 1000000) {
if ((uint32_t)diff.tv_sec > UINT32_MAX / 1000000) {
staleness = UINT32_MAX;
} else {
staleness = diff.tv_sec * 1000000;