lb_peer: Constify ptr arg in lb_peer_find()

Change-Id: Ia1da7ad3f6410a47c3e8d4e4f7f534073f2e0116
This commit is contained in:
Pau Espin Pedrol
2025-07-14 19:05:52 +02:00
parent 062390702c
commit 310e21dbf1
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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) {