diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-02 11:37:22 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-08 09:35:47 +0200 |
commit | 10ed79553a8e7241b69c4155325c29105c7a606d (patch) | |
tree | 7716dba1258810cd291dbb9424c3b0ed87741d57 /src/tbf.h | |
parent | 1d0a52a3497ada98bb4013ba907a00b4ab9a1ccd (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/tbf.h')
-rw-r--r-- | src/tbf.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |