summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp <pmaier@sysmocom.de>2016-10-27 13:30:16 +0200
committerPhilipp <pmaier@sysmocom.de>2016-10-27 13:36:42 +0200
commitada0042c587395ba1a8430504d761d532610ba5c (patch)
tree4f782843dcaa988689be38f2b85ff9d8f1680e51 /src
parenta6b5216ab4b7acfaa2b0b9d421fc72f6153fad59 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/gsm/gsm48.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index b4740cf0..46f0b2f8 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -162,6 +162,11 @@ static const struct value_string rr_cause_names[] = {
{ 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",
@@ -250,11 +255,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[] = {
{ GSM48_CMODE_SIGN, "SIGNALLING" },
{ GSM48_CMODE_SPEECH_V1, "SPEECH_V1" },