From 10ed79553a8e7241b69c4155325c29105c7a606d Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 2 Jun 2015 11:37:22 +0200 Subject: 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 --- src/tbf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tbf.h b/src/tbf.h index 2a403c6..b665a88 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; } -- cgit v1.2.1