diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-09-16 14:39:24 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-09-16 14:39:24 +0000 |
commit | 996f057a5f8091b1ba6d27f03320e2c8d62a02c9 (patch) | |
tree | 9bfc0a230a3fb594438e2be9156f984742b3b2e0 /sys | |
parent | 47bba753f67e1ce410b8842e6e13073dc801ffb5 (diff) | |
download | FreeBSD-src-996f057a5f8091b1ba6d27f03320e2c8d62a02c9.zip FreeBSD-src-996f057a5f8091b1ba6d27f03320e2c8d62a02c9.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/sctputil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index d99fa45..fde23ef 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -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 |