diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-02 14:31:44 +0200 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-02 14:45:10 +0200 |
commit | 412a4bb6f66382cc6fc37313b46ad27343d4cae6 (patch) | |
tree | 51fcbb7dcfba0e19223e1aa46bd453b35824d14d /include/osmocom | |
parent | 302aafc3e22d552638120a17b1730b585767443e (diff) |
gsm/gsm_utils.h: fix argument type of gsm_chan_t_name()
The actual value-string array 'gsm_chan_t_names' describes
the enum values of 'gsm_chan_t', not 'gsm48_chan_mode'.
Change-Id: Ifc2121b23fb8d07589cc5b7aa8fbf4e27eb6b72b
Fixes: CID#188831, CID#188825
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/gsm/gsm_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h index 37df6656..7a5da9a6 100644 --- a/include/osmocom/gsm/gsm_utils.h +++ b/include/osmocom/gsm/gsm_utils.h @@ -230,7 +230,7 @@ enum gsm_chan_t { }; extern const struct value_string gsm_chan_t_names[]; -static inline const char *gsm_chan_t_name(enum gsm48_chan_mode val) +static inline const char *gsm_chan_t_name(enum gsm_chan_t val) { return get_value_string(gsm_chan_t_names, val); } /* Deprectated functions */ |