X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fusrsctp%2Fusrsctplib%2Fnetinet%2Fsctputil.c;h=bf2d2125bd95e495e707c196fe31add74cbd25b0;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=87e770d090a48bc1d4440f0d3b372fb37c8f9574;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/usrsctp/usrsctplib/netinet/sctputil.c b/src/third_party/usrsctp/usrsctplib/netinet/sctputil.c index 87e770d..bf2d212 100755 --- a/src/third_party/usrsctp/usrsctplib/netinet/sctputil.c +++ b/src/third_party/usrsctp/usrsctplib/netinet/sctputil.c @@ -32,7 +32,7 @@ #ifdef __FreeBSD__ #include -__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 271221 2014-09-07 09:06:26Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 271674 2014-09-16 14:39:24Z tuexen $"); #endif #include @@ -2524,8 +2524,8 @@ sctp_calculate_rto(struct sctp_tcb *stcb, /* store the current RTT in us */ 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 from a sack */ (*asoc->cc_functions.sctp_rtt_calculated)(stcb, net, &now);