From: Andreas Oberritter <obi@saftware.de>
To: ecos-patches@sources.redhat.com
Cc: Andreas Oberritter <obi@saftware.de>
Subject: [PATCH 3/3] tcpip: compile fix: remove unneeded cast to long in TCPT_RANGESET
Date: Sun, 21 Feb 2010 17:10:00 -0000 [thread overview]
Message-ID: <1266772191-28315-4-git-send-email-obi@saftware.de> (raw)
In-Reply-To: <1266772191-28315-3-git-send-email-obi@saftware.de>
---
.../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
next prev parent reply other threads:[~2010-02-21 17:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-21 17:10 [PATCH 0/3] misc fixes for eCos 3.0 Andreas Oberritter
2010-02-21 17:10 ` [PATCH 1/3] usbs_at91: call vendor_control_fn on USB_DEVREQ_TYPE_VENDOR Andreas Oberritter
2010-02-21 17:10 ` [PATCH 2/3] usbseth: compile fix: move misplaced #endif Andreas Oberritter
2010-02-21 17:10 ` Andreas Oberritter [this message]
2010-02-22 11:54 ` [PATCH 0/3] misc fixes for eCos 3.0 Gary Thomas
2010-02-22 12:51 ` Andreas Oberritter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1266772191-28315-4-git-send-email-obi@saftware.de \
--to=obi@saftware.de \
--cc=ecos-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).