Change in libosmocore[master]: gsm/gsm_utils.h: fix argument type of gsm_chan_t_name()

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu May 2 12:46:14 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/13844


Change subject: gsm/gsm_utils.h: fix argument type of gsm_chan_t_name()
......................................................................

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
---
M include/osmocom/gsm/gsm_utils.h
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/44/13844/1

diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h
index 37df665..7a5da9a 100644
--- a/include/osmocom/gsm/gsm_utils.h
+++ b/include/osmocom/gsm/gsm_utils.h
@@ -230,7 +230,7 @@
 };
 
 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 */

-- 
To view, visit https://gerrit.osmocom.org/13844
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifc2121b23fb8d07589cc5b7aa8fbf4e27eb6b72b
Gerrit-Change-Number: 13844
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190502/a9197dca/attachment.html>


More information about the gerrit-log mailing list