aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2023-03-10 10:07:36 +0100
committerdexter <pmaier@sysmocom.de>2023-03-20 09:29:31 +0000
commita10a34cf6aaf63402114d12593d05793aad8c429 (patch)
tree61fa9b30ecbf190f5aec85b2c376a6c56d1dce9a
parentf2768d39c107be7c2d8ca60079394566bc007a8b (diff)
bts: is_xyz_bts check functions should return bool
The check functions that we use to distinguish between the various types of BTSs return an integer that can be 0 or 1. Let's change the return type to bool Change-Id: I3de957f228452c9d3aa4fed342f73bfb17363b40
-rw-r--r--include/osmocom/bsc/bts.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h
index 4faf5f291..ea396ccba 100644
--- a/include/osmocom/bsc/bts.h
+++ b/include/osmocom/bsc/bts.h
@@ -678,77 +678,77 @@ struct gsm_bts {
#define GSM_BTS_SI(bts, i) (void *)((bts)->si_buf[i][0])
/* this actually refers to the IPA transport, not the BTS model */
-static inline int is_ipaccess_bts(const struct gsm_bts *bts)
+static inline bool is_ipaccess_bts(const struct gsm_bts *bts)
{
switch (bts->type) {
case GSM_BTS_TYPE_NANOBTS:
case GSM_BTS_TYPE_OSMOBTS:
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
-static inline int is_osmobts(const struct gsm_bts *bts)
+static inline bool is_osmobts(const struct gsm_bts *bts)
{
switch (bts->type) {
case GSM_BTS_TYPE_OSMOBTS:
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
-static inline int is_siemens_bts(const struct gsm_bts *bts)
+static inline bool is_siemens_bts(const struct gsm_bts *bts)
{
switch (bts->type) {
case GSM_BTS_TYPE_BS11:
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
-static inline int is_nokia_bts(const struct gsm_bts *bts)
+static inline bool is_nokia_bts(const struct gsm_bts *bts)
{
switch (bts->type) {
case GSM_BTS_TYPE_NOKIA_SITE:
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
-static inline int is_ericsson_bts(const struct gsm_bts *bts)
+static inline bool is_ericsson_bts(const struct gsm_bts *bts)
{
switch (bts->type) {
case GSM_BTS_TYPE_RBS2000:
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
-static inline int is_e1_bts(const struct gsm_bts *bts)
+static inline bool is_e1_bts(const struct gsm_bts *bts)
{
switch (bts->type) {
case GSM_BTS_TYPE_BS11:
case GSM_BTS_TYPE_RBS2000:
case GSM_BTS_TYPE_NOKIA_SITE:
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
static inline const struct osmo_location_area_id *bts_lai(struct gsm_bts *bts)