[Sumover-dev] [svn commit] r4323 - vic/branches/cc/cc
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Mon Nov 17 22:01:27 GMT 2008
Author: soohyunc
Date: Mon Nov 17 22:01:26 2008
New Revision: 4323
Modified:
vic/branches/cc/cc/tfwc_rcvr.cpp
Log:
(minor modification) variable declaration comes to the front.
Modified: vic/branches/cc/cc/tfwc_rcvr.cpp
==============================================================================
--- vic/branches/cc/cc/tfwc_rcvr.cpp (original)
+++ vic/branches/cc/cc/tfwc_rcvr.cpp Mon Nov 17 22:01:26 2008
@@ -55,6 +55,9 @@
void TfwcRcvr::tfwc_rcvr_recv(u_int16_t type, u_int16_t seqno,
u_int16_t ackofack, u_int32_t ts)
{
+ // count and offset
+ int cnt, offset;
+
// parse the received seqno and ackofack
if (type == XR_BT_1) {
//debug_msg("received seqno: %d\n", seqno);
@@ -69,7 +72,7 @@
// we have one or more packet loss
else {
// number of packet loss
- int cnt = currseq_ - prevseq_ - 1;
+ cnt = currseq_ - prevseq_ - 1;
// set next bit to 0 equal to the number of lost packets
for (int i = 0; i < cnt; i++) {
@@ -81,7 +84,7 @@
}
// trim ackvec
- int offset = currseq_ - ackofack_;
+ offset = currseq_ - ackofack_;
if (ackofack_)
trimvec(tfwcAV, offset);
More information about the Sumover-dev
mailing list