DL window: constify resend_needed() function
It doesn't change any state so mark it as const. Change-Id: I5d672bfd654198aebb187772de464c52b3209435
This commit is contained in:
parent
39eb95f130
commit
ead08aae35
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue