summaryrefslogtreecommitdiffstats
path: root/src/gsm/gsm0411_smc.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-22 10:50:52 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-22 10:50:52 +0100
commit9473c5d75d54129135472ce93b1cff78d246a9c9 (patch)
tree503ee209520d97e8d548d5f0f8014d251b4e7d16 /src/gsm/gsm0411_smc.c
parent1c4c373b9f38227470b1e9b3e36a6696a0fa9716 (diff)
sms: Mark the state dispatch table as static const
GCC 4.7.2 was already smart enough to see that the table is const so there is no change in the generated assembly code. For some reason the dispatch is still going through one relocation.
Diffstat (limited to 'src/gsm/gsm0411_smc.c')
-rw-r--r--src/gsm/gsm0411_smc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/gsm0411_smc.c b/src/gsm/gsm0411_smc.c
index cd267a07..ff68c089 100644
--- a/src/gsm/gsm0411_smc.c
+++ b/src/gsm/gsm0411_smc.c
@@ -410,7 +410,7 @@ static int gsm411_mnsms_abort_req(struct gsm411_smc_inst *inst,
}
/* statefull handling for MNSMS SAP messages */
-static struct smcdownstate {
+static const struct smcdownstate {
uint32_t states;
int type;
const char *name;
@@ -471,7 +471,7 @@ int gsm411_smc_send(struct gsm411_smc_inst *inst, int msg_type,
}
/* statefull handling for MMSMS SAP messages */
-static struct smcdatastate {
+static const struct smcdatastate {
uint32_t states;
int type, cp_type;
const char *name;