aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-05-02 14:31:44 +0200
committerVadim Yanitskiy <axilirator@gmail.com>2019-05-02 14:45:10 +0200
commit412a4bb6f66382cc6fc37313b46ad27343d4cae6 (patch)
tree51fcbb7dcfba0e19223e1aa46bd453b35824d14d /include/osmocom/gsm
parent302aafc3e22d552638120a17b1730b585767443e (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/gsm')
-rw-r--r--include/osmocom/gsm/gsm_utils.h2
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 */