aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-11-29 12:45:34 +0100
committerMax <msuraev@sysmocom.de>2017-11-29 14:23:13 +0000
commitd0ff694cb94e350b240120e75e19ab4fd31cbe7f (patch)
treeaf690c814dd868cd3cb71e8ecc2fd5e937140a1d /include
parent8c209c9e2b9cbf9b5f6f2f3ce6fd734b03f79a59 (diff)
cosmetic: tighten function type signatures
* change return type to bool * constify parameters The nm_is_running(), trx_is_usable() and ts_is_usable() always return boolean value and are always used as such anyway. The also do not change their parameters. Change-Id: I6a572fc78371c69f5308edbad0ebe15e143d0505
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/abis_nm.h2
-rw-r--r--include/osmocom/bsc/chan_alloc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/bsc/abis_nm.h b/include/osmocom/bsc/abis_nm.h
index b0cb16669..18f87cdf4 100644
--- a/include/osmocom/bsc/abis_nm.h
+++ b/include/osmocom/bsc/abis_nm.h
@@ -163,7 +163,7 @@ const char *ipacc_testres_name(uint8_t res);
/* Functions calling into other code parts */
bool all_trx_rsl_connected_unlocked(const struct gsm_bts *bts);
-int nm_is_running(struct gsm_nm_state *s);
+bool nm_is_running(const struct gsm_nm_state *s);
int abis_nm_vty_init(void);
diff --git a/include/osmocom/bsc/chan_alloc.h b/include/osmocom/bsc/chan_alloc.h
index 7388e14c5..320fa947c 100644
--- a/include/osmocom/bsc/chan_alloc.h
+++ b/include/osmocom/bsc/chan_alloc.h
@@ -49,6 +49,6 @@ struct pchan_load {
void bts_chan_load(struct pchan_load *cl, const struct gsm_bts *bts);
void network_chan_load(struct pchan_load *pl, struct gsm_network *net);
-int trx_is_usable(struct gsm_bts_trx *trx);
+bool trx_is_usable(const struct gsm_bts_trx *trx);
#endif /* _CHAN_ALLOC_H */