aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-11-12 22:28:18 +0900
committerHarald Welte <laforge@gnumonks.org>2009-11-12 22:28:18 +0900
commitccda96517c7f2f5aa10166eebe105f2f45342ad4 (patch)
tree8300b59e608bbf324d15b7d0df6dc2c8c4e32748 /openbsc/src/gsm_04_11.c
parent5727cf4ea78033b955fadd2525dbe12da486edf6 (diff)
move 'struct value_string' and 'get_value_string()' to gsm_data
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r--openbsc/src/gsm_04_11.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index f941d90a..75ddf9dd 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -56,11 +56,6 @@
void *tall_gsms_ctx;
static u_int32_t new_callref = 0x40000001;
-struct value_string {
- u_int32_t value;
- const char *str;
-};
-
static const struct value_string cp_cause_strs[] = {
{ GSM411_CP_CAUSE_NET_FAIL, "Network Failure" },
{ GSM411_CP_CAUSE_CONGESTION, "Congestion" },
@@ -104,19 +99,6 @@ static const struct value_string rp_cause_strs[] = {
{ 0, NULL }
};
-const char *get_value_string(const struct value_string *vs, u_int32_t val)
-{
- int i;
-
- for (i = 0;; i++) {
- if (vs[i].value == 0 && vs[i].str == NULL)
- break;
- if (vs[i].value == val)
- return vs[i].str;
- }
- return "unknown";
-}
-
struct gsm_sms *sms_alloc(void)
{
return talloc_zero(tall_gsms_ctx, struct gsm_sms);