fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/32556 )
Change subject: bts_is_online(): make the BTS pointer const, return bool ......................................................................
bts_is_online(): make the BTS pointer const, return bool
Change-Id: Idb4f9f8862041c5902df0e6e8d1ac2a60ada95df (cherry picked from commit 856c6dc2f51d7d189cce462dfce7e308f1ff3ab2) --- M src/osmo-bsc/bts.c 1 file changed, 13 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/56/32556/1
diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c index 9be2454..5718915 100644 --- a/src/osmo-bsc/bts.c +++ b/src/osmo-bsc/bts.c @@ -885,14 +885,14 @@ return (base->depends_on[idx] & (1U << bit)) > 0; }
-static int bts_is_online(struct gsm_bts *bts) +static bool bts_is_online(const struct gsm_bts *bts) { /* TODO: support E1 BTS too */ if (!is_ipaccess_bts(bts)) - return 1; + return true;
if (!bts->oml_link) - return 0; + return false;
return bts->mo.nm_state.operational == NM_OPSTATE_ENABLED; }