This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/3] tcpip: compile fix: remove unneeded cast to long in TCPT_RANGESET


---
 .../net/tcpip/v3_0/src/sys/netinet/tcp_input.c     |    2 +-
 .../net/tcpip/v3_0/src/sys/netinet/tcp_timer.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/net/tcpip/v3_0/src/sys/netinet/tcp_input.c b/packages/net/tcpip/v3_0/src/sys/netinet/tcp_input.c
index a91fc73..b7a4ad9 100644
--- a/packages/net/tcpip/v3_0/src/sys/netinet/tcp_input.c
+++ b/packages/net/tcpip/v3_0/src/sys/netinet/tcp_input.c
@@ -2836,7 +2836,7 @@ tcp_mss(tp, offer)
 			/* default variation is +- 1 rtt */
 			tp->t_rttvar =
 			    tp->t_srtt * TCP_RTTVAR_SCALE / TCP_RTT_SCALE;
-		TCPT_RANGESET((long) tp->t_rxtcur,
+		TCPT_RANGESET(tp->t_rxtcur,
 		    ((tp->t_srtt >> 2) + tp->t_rttvar) >> 1,
 		    tp->t_rttmin, TCPTV_REXMTMAX);
 	}
diff --git a/packages/net/tcpip/v3_0/src/sys/netinet/tcp_timer.c b/packages/net/tcpip/v3_0/src/sys/netinet/tcp_timer.c
index e3b91d4..514b76b 100644
--- a/packages/net/tcpip/v3_0/src/sys/netinet/tcp_timer.c
+++ b/packages/net/tcpip/v3_0/src/sys/netinet/tcp_timer.c
@@ -265,7 +265,7 @@ tcp_timers(tp, timer)
 		rto = TCP_REXMTVAL(tp);
 		if (rto < tp->t_rttmin)
 			rto = tp->t_rttmin;
-		TCPT_RANGESET((long) tp->t_rxtcur,
+		TCPT_RANGESET(tp->t_rxtcur,
 		    rto * tcp_backoff[tp->t_rxtshift],
 		    tp->t_rttmin, TCPTV_REXMTMAX);
 		tp->t_timer[TCPT_REXMT] = tp->t_rxtcur;
-- 
1.6.3.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]