diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-04-28 02:19:07 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-04-28 02:19:44 +0700 |
commit | 856c6dc2f51d7d189cce462dfce7e308f1ff3ab2 (patch) | |
tree | e57f78f92be24575c93258e9af34bcb2cbb5ac7e | |
parent | 758634eadf662700cb183229f039c661b791fb97 (diff) |
bts_is_online(): make the BTS pointer const, return bool
Change-Id: Idb4f9f8862041c5902df0e6e8d1ac2a60ada95df
-rw-r--r-- | src/osmo-bsc/bts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c index 108c35539..527220fad 100644 --- a/src/osmo-bsc/bts.c +++ b/src/osmo-bsc/bts.c @@ -888,14 +888,14 @@ int bts_depend_is_depedency(struct gsm_bts *base, struct gsm_bts *other) 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; } |