From 856c6dc2f51d7d189cce462dfce7e308f1ff3ab2 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 28 Apr 2023 02:19:07 +0700 Subject: [PATCH] bts_is_online(): make the BTS pointer const, return bool Change-Id: Idb4f9f8862041c5902df0e6e8d1ac2a60ada95df --- src/osmo-bsc/bts.c | 6 +++--- 1 file 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; }