From 579fb09eacf0412b9980af381c558eafb220f0d5 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 22 Nov 2012 10:54:23 +0100 Subject: misc: Use static const struct for LAPD and Abis --- src/gsm/abis_nm.c | 2 +- src/gsm/lapd_core.c | 2 +- 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; -- cgit v1.2.3