Skip to content

Commit

Permalink
Fix type checker
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRosenow committed Nov 19, 2024
1 parent 7bb7f7d commit 7104ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/riot/coap_udp_ip_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ static CoapUdpIpChannel *_get_coap_channel_by_remote(const sock_udp_ep_t *remote
channel = (CoapUdpIpChannel *)_env->net_bundles[i]->net_channel;

if (remote->family == AF_INET6) {
if (ipv6_addr_equal(&channel->remote.addr.ipv6, &remote->addr.ipv6)) {
if (ipv6_addr_equal((ipv6_addr_t *)&channel->remote.addr.ipv6, (ipv6_addr_t *)&remote->addr.ipv6)) {
return channel;
}
} else if (remote->family == AF_INET) {
if (ipv4_addr_equal(&channel->remote.addr.ipv4, &remote->addr.ipv4)) {
if (ipv4_addr_equal((ipv4_addr_t *)&channel->remote.addr.ipv4, (ipv4_addr_t *)&remote->addr.ipv4)) {
return channel;
}
}
Expand Down

0 comments on commit 7104ddc

Please sign in to comment.