aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-10-23 19:53:29 +0200
committerneels <nhofmeyr@sysmocom.de>2021-11-01 11:22:48 +0000
commit33d48cd42b872e9d64e6496249fc7b4b2e10e85e (patch)
treecc7b5c5099549b35056e70a4438522230bf89de6
parentfdcd49b08152675e4e0fd67108c35ac2d7caea2d (diff)
constify lchan_state_is()
An upcoming patch would rather pass a const struct gsm_lchan*. See I2fb48c549186db812b1e9d6b735a92e80f27b8d3. Related: OS#4878 Change-Id: I523cbf04e77f43924c3f09094d56f815d3de640d
-rw-r--r--include/osmocom/bsc/lchan_fsm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/bsc/lchan_fsm.h b/include/osmocom/bsc/lchan_fsm.h
index e7a06d56a..fa0d29984 100644
--- a/include/osmocom/bsc/lchan_fsm.h
+++ b/include/osmocom/bsc/lchan_fsm.h
@@ -72,7 +72,7 @@ static inline const char *lchan_state_name(struct gsm_lchan *lchan)
return lchan->fi ? osmo_fsm_inst_state_name(lchan->fi) : "NULL";
}
-static inline bool lchan_state_is(struct gsm_lchan *lchan, uint32_t state)
+static inline bool lchan_state_is(const struct gsm_lchan *lchan, uint32_t state)
{
return (!lchan->fi && state == LCHAN_ST_UNUSED)
|| (lchan->fi && lchan->fi->state == state);