aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-02 11:37:22 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-08 09:35:47 +0200
commit10ed79553a8e7241b69c4155325c29105c7a606d (patch)
tree7716dba1258810cd291dbb9424c3b0ed87741d57 /src
parent1d0a52a3497ada98bb4013ba907a00b4ab9a1ccd (diff)
tbf: Make the ms() getter method const
Currently this method cannot be used in other const methods. This commit adds the missing const keyword. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
-rw-r--r--src/tbf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 2a403c65..b665a88e 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -123,7 +123,7 @@ struct gprs_rlcmac_tbf {
struct msgb *create_dl_ass(uint32_t fn);
struct msgb *create_ul_ass(uint32_t fn);
- GprsMs *ms();
+ GprsMs *ms() const;
void set_ms(GprsMs *ms);
uint8_t tsc() const;
@@ -284,7 +284,7 @@ inline void gprs_rlcmac_tbf::set_state(enum gprs_rlcmac_tbf_state new_state)
state = new_state;
}
-inline GprsMs *gprs_rlcmac_tbf::ms()
+inline GprsMs *gprs_rlcmac_tbf::ms() const
{
return m_ms;
}