From 1e77ca88af8f07290cd1a11f11f3db916c9c3c79 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 27 Jan 2021 13:22:03 +0100 Subject: [PATCH] tbf: Make tbf_ms() param const Change-Id: I041c564b15d17d05ce97ea0085fcd9192a346578 --- src/tbf.cpp | 2 +- src/tbf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tbf.cpp b/src/tbf.cpp index d2d55f23..0fec476c 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -1165,7 +1165,7 @@ struct llist_head *tbf_bts_list(struct gprs_rlcmac_tbf *tbf) return &tbf->m_bts_list.list; } -struct GprsMs *tbf_ms(struct gprs_rlcmac_tbf *tbf) +struct GprsMs *tbf_ms(const struct gprs_rlcmac_tbf *tbf) { return tbf->ms(); } diff --git a/src/tbf.h b/src/tbf.h index d616076d..983d38cc 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -196,7 +196,7 @@ enum gprs_rlcmac_tbf_direction tbf_direction(const struct gprs_rlcmac_tbf *tbf); void tbf_set_ms(struct gprs_rlcmac_tbf *tbf, struct GprsMs *ms); struct llist_head *tbf_ms_list(struct gprs_rlcmac_tbf *tbf); struct llist_head *tbf_bts_list(struct gprs_rlcmac_tbf *tbf); -struct GprsMs *tbf_ms(struct gprs_rlcmac_tbf *tbf); +struct GprsMs *tbf_ms(const struct gprs_rlcmac_tbf *tbf); bool tbf_timers_pending(struct gprs_rlcmac_tbf *tbf, enum tbf_timers t); void tbf_free(struct gprs_rlcmac_tbf *tbf); struct gprs_llc *tbf_llc(struct gprs_rlcmac_tbf *tbf);