aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 17:31:02 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 17:31:02 +0100
commit0a51e1a33795559ef6baf5cd2afce288b8f9eba7 (patch)
tree2155c30c02300d9e7c3b682addcf2440e0cee8db
parentef852ae86eec6ce4fc9405299a53851ba0c9206e (diff)
sysmobts: Change the ARRAY_SIZE to a constant number
The parameter "uint8_t mute_state[8]" is actually a "uint8_t *mute_state" so the ARRAY_SIZE is not what we think it is. Fixes: Coverity CID 1125885
-rw-r--r--src/osmo-bts-sysmo/oml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c
index 395dcbc..27b108a 100644
--- a/src/osmo-bts-sysmo/oml.c
+++ b/src/osmo-bts-sysmo/oml.c
@@ -346,7 +346,7 @@ int oml_mo_rf_lock_chg(struct gsm_abis_mo *mo, uint8_t mute_state[8],
int i;
int is_locked = 1;
- for (i = 0; i < ARRAY_SIZE(mute_state); ++i)
+ for (i = 0; i < 8; ++i)
if (!mute_state[i])
is_locked = 0;