We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0460303 commit 29b403bCopy full SHA for 29b403b
src/mctpd.c
@@ -1584,11 +1584,11 @@ static int endpoint_send_set_endpoint_id(const struct peer *peer,
1584
}
1585
1586
// Checks if given EID belongs to any bridge's pool range
1587
-static bool is_eid_in_bridge_pool(struct net *n, struct ctx *ctx,
+static bool is_eid_in_bridge_pool(const struct net *n, const struct ctx *ctx,
1588
mctp_eid_t eid)
1589
{
1590
for (int i = ctx->dyn_eid_min; i <= eid; i++) {
1591
- struct peer *peer = n->peers[i];
+ const struct peer *peer = n->peers[i];
1592
if (peer && peer->pool_size > 0) {
1593
if (eid >= peer->pool_start &&
1594
eid < peer->pool_start + peer->pool_size) {
0 commit comments