Author: tuexen
Date: Sun Apr  8 11:37:00 2018
New Revision: 332269
URL: https://svnweb.freebsd.org/changeset/base/332269

Log:
  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

Modified:
  head/sys/netinet/sctp_input.c

Modified: head/sys/netinet/sctp_input.c
==============================================================================
--- head/sys/netinet/sctp_input.c       Sun Apr  8 07:18:29 2018        
(r332268)
+++ head/sys/netinet/sctp_input.c       Sun Apr  8 11:37:00 2018        
(r332269)
@@ -2616,7 +2616,7 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, in
                    (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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to