msuraev has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/32633 )
Change subject: pcu_connected(): constify parameter ......................................................................
pcu_connected(): constify parameter
Change-Id: I6d18ec0ad2bd6f71e0187ed70b03c3a2d0447f21 --- M include/osmocom/bsc/pcu_if.h M src/osmo-bsc/pcu_sock.c 2 files changed, 11 insertions(+), 2 deletions(-)
Approvals: fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified
diff --git a/include/osmocom/bsc/pcu_if.h b/include/osmocom/bsc/pcu_if.h index 34349dc..5dc6e37 100644 --- a/include/osmocom/bsc/pcu_if.h +++ b/include/osmocom/bsc/pcu_if.h @@ -15,7 +15,7 @@ };
/* Check if BTS has a PCU connection */ -bool pcu_connected(struct gsm_network *net); +bool pcu_connected(const struct gsm_network *net);
/* PCU relevant information has changed; Inform PCU (if connected) */ void pcu_info_update(struct gsm_bts *bts); diff --git a/src/osmo-bsc/pcu_sock.c b/src/osmo-bsc/pcu_sock.c index 0988c3b..eb4f265 100644 --- a/src/osmo-bsc/pcu_sock.c +++ b/src/osmo-bsc/pcu_sock.c @@ -59,7 +59,7 @@ [PCU_IF_SAPI_PCH_DT] = "PCH_DT", };
-bool pcu_connected(struct gsm_network *net) +bool pcu_connected(const struct gsm_network *net) { struct pcu_sock_state *state = net->pcu_state;