summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-22 10:54:23 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-22 10:54:23 +0100
commit579fb09eacf0412b9980af381c558eafb220f0d5 (patch)
tree143c10430e2f969c6c5848897841978e3befb3ca
parent9473c5d75d54129135472ce93b1cff78d246a9c9 (diff)
misc: Use static const struct for LAPD and Abis
-rw-r--r--src/gsm/abis_nm.c2
-rw-r--r--src/gsm/lapd_core.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index f6d4003e..f3f3a423 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -380,7 +380,7 @@ const char *abis_nm_avail_name(uint8_t avail)
return get_value_string(avail_names, avail);
}
-static struct value_string test_names[] = {
+static const struct value_string test_names[] = {
/* FIXME: standard test names */
{ NM_IPACC_TESTNO_CHAN_USAGE, "Channel Usage" },
{ NM_IPACC_TESTNO_BCCH_CHAN_USAGE, "BCCH Channel Usage" },
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c
index 96099edb..d9a1a636 100644
--- a/src/gsm/lapd_core.c
+++ b/src/gsm/lapd_core.c
@@ -2070,7 +2070,7 @@ static int lapd_rel_req_idle(struct osmo_dlsap_prim *dp,
}
/* statefull handling for DL SAP messages from L3 */
-static struct l2downstate {
+static const struct l2downstate {
uint32_t states;
int prim, op;
const char *name;