aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/abis_nm.c
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 /src/libbsc/abis_nm.c
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 'src/libbsc/abis_nm.c')
-rw-r--r--src/libbsc/abis_nm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libbsc/abis_nm.c b/src/libbsc/abis_nm.c
index 295cefde2..f1a56a611 100644
--- a/src/libbsc/abis_nm.c
+++ b/src/libbsc/abis_nm.c
@@ -159,7 +159,7 @@ static int abis_nm_sendmsg_direct(struct gsm_bts *bts, struct msgb *msg)
static int abis_nm_rcvmsg_sw(struct msgb *mb);
-int nm_is_running(struct gsm_nm_state *s) {
+bool nm_is_running(const struct gsm_nm_state *s) {
return (s->operational == NM_OPSTATE_ENABLED) && (
(s->availability == NM_AVSTATE_OK) ||
(s->availability == 0xff)