Date: Tue, 16 Sep 2014 14:39:24 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271674 - head/sys/netinet Message-ID: <201409161439.s8GEdOCr000780@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Tue Sep 16 14:39:24 2014 New Revision: 271674 URL: http://svnweb.freebsd.org/changeset/base/271674 Log: Add a explict cast to silence a warning when building the userland stack on Windows. This issue was reported by Peter Kasting from Google. MFC after: 3 days Modified: head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctputil.c ============================================================================== --- head/sys/netinet/sctputil.c Tue Sep 16 14:20:33 2014 (r271673) +++ head/sys/netinet/sctputil.c Tue Sep 16 14:39:24 2014 (r271674) @@ -2403,8 +2403,8 @@ sctp_calculate_rto(struct sctp_tcb *stcb net->rtt = (uint64_t) 1000000 *(uint64_t) now.tv_sec + (uint64_t) now.tv_usec; - /* computer rtt in ms */ - rtt = net->rtt / 1000; + /* compute rtt in ms */ + rtt = (int32_t) (net->rtt / 1000); if ((asoc->cc_functions.sctp_rtt_calculated) && (rtt_from_sack == SCTP_RTT_FROM_DATA)) { /* * Tell the CC module that a new update has just occurred
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409161439.s8GEdOCr000780>