mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 17:10:36 +00:00
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:
parent
f33fbc18f5
commit
c3115feb7e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332269
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue