mirror of https://gerrit.osmocom.org/libosmocore
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
This commit is contained in:
parent
a6b5216ab4
commit
ada0042c58
|
@ -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" },
|
||||
|
|
Loading…
Reference in New Issue