[PATCH] libosmocore[master]: COSMETIC: moving rr_cause_name() in gsm48.c

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/.

dexter gerrit-no-reply at lists.osmocom.org
Thu Oct 27 11:36:29 UTC 2016


Review at  https://gerrit.osmocom.org/1165

COSMETIC: moving rr_cause_name() in gsm48.c

rr_cause_name() is located a far of from
value_string rr_cause_names[] while other value string
functions are located right below their related value
string definitions. This commit moves rr_cause_name()
below rr_cause_names[] as it should be

Change-Id: Ie6c03a6ea02c370d8733db5ba2a709610cd70ce7
---
M src/gsm/gsm48.c
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/65/1165/1

diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index b4740cf..46f0b2f 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -162,6 +162,11 @@
 	{ 0,					NULL },
 };
 
+const char *rr_cause_name(uint8_t cause)
+{
+	return get_value_string(rr_cause_names, cause);
+}
+
 /* FIXME: convert to value_string */
 static const char *cc_state_names[32] = {
 	"NULL",
@@ -248,11 +253,6 @@
 const char *gsm48_cc_msg_name(uint8_t msgtype)
 {
 	return get_value_string(cc_msg_names, msgtype);
-}
-
-const char *rr_cause_name(uint8_t cause)
-{
-	return get_value_string(rr_cause_names, cause);
 }
 
 const struct value_string gsm48_chan_mode_names[] = {

-- 
To view, visit https://gerrit.osmocom.org/1165
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6c03a6ea02c370d8733db5ba2a709610cd70ce7
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>



More information about the gerrit-log mailing list