aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-06-30 15:29:26 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-30 15:29:26 +0200
commit6404a766617ba3dac02374b4e0d6cbc8b7b9770d (patch)
tree2771937f267c625667d0c6f426d11009a4dfabef
parent48eca2524cb960b4ea430e228fcb80be73a512f5 (diff)
make oml_mo_state_init() a void function
... so we don't get warnings about not returning anything
-rw-r--r--include/osmo-bts/oml.h2
-rw-r--r--src/common/oml.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmo-bts/oml.h b/include/osmo-bts/oml.h
index 01c127a5..5e9c8801 100644
--- a/include/osmo-bts/oml.h
+++ b/include/osmo-bts/oml.h
@@ -15,7 +15,7 @@ int oml_mo_statechg_ack(struct gsm_abis_mo *mo);
int oml_mo_state_chg(struct gsm_abis_mo *mo, int op_state, int avail_state);
/* First initialization of MO, does _not_ generate state changes */
-int oml_mo_state_init(struct gsm_abis_mo *mo, int op_state, int avail_state);
+void oml_mo_state_init(struct gsm_abis_mo *mo, int op_state, int avail_state);
/* Transmit STATE CHG REP even if there was no state change */
int oml_tx_state_changed(struct gsm_abis_mo *mo);
diff --git a/src/common/oml.c b/src/common/oml.c
index 62078662..028a7928 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -230,7 +230,7 @@ int oml_tx_state_changed(struct gsm_abis_mo *mo)
}
/* First initialization of MO, does _not_ generate state changes */
-int oml_mo_state_init(struct gsm_abis_mo *mo, int op_state, int avail_state)
+void oml_mo_state_init(struct gsm_abis_mo *mo, int op_state, int avail_state)
{
mo->nm_state.availability = avail_state;
mo->nm_state.operational = op_state;