mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-smlc.git
synced 2025-10-23 08:22:18 +00:00
lb_peer: Constify ptr arg in lb_peer_find()
Change-Id: Ia1da7ad3f6410a47c3e8d4e4f7f534073f2e0116
This commit is contained in:
@@ -60,7 +60,7 @@ struct lb_peer_ev_ctx {
|
||||
};
|
||||
|
||||
struct lb_peer *lb_peer_find_or_create(struct sccp_lb_inst *sli, const struct osmo_sccp_addr *peer_addr);
|
||||
struct lb_peer *lb_peer_find(struct sccp_lb_inst *sli, const struct osmo_sccp_addr *peer_addr);
|
||||
struct lb_peer *lb_peer_find(const struct sccp_lb_inst *sli, const struct osmo_sccp_addr *peer_addr);
|
||||
|
||||
int lb_peer_up_l2(struct sccp_lb_inst *sli, const struct osmo_sccp_addr *calling_addr, bool co, uint32_t conn_id,
|
||||
struct msgb *l2);
|
||||
|
@@ -69,7 +69,7 @@ struct lb_peer *lb_peer_find_or_create(struct sccp_lb_inst *sli, const struct os
|
||||
return lb_peer_alloc(sli, peer_addr);
|
||||
}
|
||||
|
||||
struct lb_peer *lb_peer_find(struct sccp_lb_inst *sli, const struct osmo_sccp_addr *peer_addr)
|
||||
struct lb_peer *lb_peer_find(const struct sccp_lb_inst *sli, const struct osmo_sccp_addr *peer_addr)
|
||||
{
|
||||
struct lb_peer *lbp;
|
||||
llist_for_each_entry(lbp, &sli->lb_peers, entry) {
|
||||
|
Reference in New Issue
Block a user