diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-09-21 09:07:20 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-09-21 09:07:42 +0200 |
commit | 369015c53545f2f67d8610e5d821ee75289122e5 (patch) | |
tree | 8053dc83e51e4778ddfcf673b7aca31ea9cbdb01 /src/gsm/gsm0808_utils.c | |
parent | 5f2eb150742bd793f2f61fb5cfe2b2df707c0093 (diff) |
gsm0808_utils: constify parameter
parameter cfg in gsm0808_sc_cfg_from_gsm48_mr_cfg() is used read only.
Lets add a const to make this clear to the compiler.
Change-Id: I31e8d273b070b0afc446a298299d4f502d6c396b
Diffstat (limited to 'src/gsm/gsm0808_utils.c')
-rw-r--r-- | src/gsm/gsm0808_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/gsm0808_utils.c b/src/gsm/gsm0808_utils.c index 4b2a5f56..0d6938ef 100644 --- a/src/gsm/gsm0808_utils.c +++ b/src/gsm/gsm0808_utils.c @@ -1166,7 +1166,7 @@ int gsm0808_speech_codec_from_chan_type(struct gsm0808_speech_codec *sc, * \param[in] cfg AMR configuration in GSM 04.08 format. * \param[in] hint if the resulting configuration shall be used with a FR or HR TCH. * \returns configuration bits (S0-S15) */ -uint16_t gsm0808_sc_cfg_from_gsm48_mr_cfg(struct gsm48_multi_rate_conf *cfg, +uint16_t gsm0808_sc_cfg_from_gsm48_mr_cfg(const struct gsm48_multi_rate_conf *cfg, bool fr) { uint16_t s15_s0 = 0; |