aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-13 18:25:36 +0100
committerMax <msuraev@sysmocom.de>2017-12-13 18:25:36 +0100
commitead08aae35ba282ef0fab0b982fe7877fee361da (patch)
tree5fce952770c542b41f23373fe19fae6bd7ca45a0 /src
parent39eb95f1307895cbd67d860f15931f66fd384aca (diff)
DL window: constify resend_needed() function
It doesn't change any state so mark it as const. Change-Id: I5d672bfd654198aebb187772de464c52b3209435
Diffstat (limited to 'src')
-rw-r--r--src/rlc.cpp2
-rw-r--r--src/rlc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp
index acd41693..c52417d2 100644
--- a/src/rlc.cpp
+++ b/src/rlc.cpp
@@ -58,7 +58,7 @@ void gprs_rlc_dl_window::reset()
m_v_b.reset();
}
-int gprs_rlc_dl_window::resend_needed()
+int gprs_rlc_dl_window::resend_needed() const
{
for (uint16_t bsn = v_a(); bsn != v_s(); bsn = mod_sns(bsn + 1)) {
if (m_v_b.is_nacked(bsn) || m_v_b.is_resend(bsn))
diff --git a/src/rlc.h b/src/rlc.h
index ee86c2ac..14d2082c 100644
--- a/src/rlc.h
+++ b/src/rlc.h
@@ -303,7 +303,7 @@ struct gprs_rlc_dl_window: public gprs_rlc_window {
const uint16_t distance() const;
/* Methods to manage reception */
- int resend_needed();
+ int resend_needed() const;
int mark_for_resend();
void update(BTS *bts, char *show_rbb, uint16_t ssn,
uint16_t *lost, uint16_t *received);