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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu May 2 15:03:05 UTC 2019


Harald Welte has submitted this change and it was merged. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



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: merged
Gerrit-Change-Id: Ifc2121b23fb8d07589cc5b7aa8fbf4e27eb6b72b
Gerrit-Change-Number: 13844
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190502/f3097633/attachment.htm>


More information about the gerrit-log mailing list