mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Make proper use of IN6_ARE_ADDR_EQUAL()
Pass pointers to sin6_addr instead of passing sin6_addr.s6_addr32 which isn't portable and isn't the proper way to use the macro anyway.
This commit is contained in:
parent
1a11efec58
commit
13e2b12f9e
@ -1952,7 +1952,7 @@ raop_v2_timing_cb(int fd, short what, void *arg)
|
|||||||
for (rs = sessions; rs; rs = rs->next)
|
for (rs = sessions; rs; rs = rs->next)
|
||||||
{
|
{
|
||||||
if ((rs->sa.ss.ss_family == AF_INET6)
|
if ((rs->sa.ss.ss_family == AF_INET6)
|
||||||
&& IN6_ARE_ADDR_EQUAL(sa.sin6.sin6_addr.s6_addr32, rs->sa.sin6.sin6_addr.s6_addr32))
|
&& IN6_ARE_ADDR_EQUAL(&sa.sin6.sin6_addr, &rs->sa.sin6.sin6_addr))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2314,7 +2314,7 @@ raop_v2_control_cb(int fd, short what, void *arg)
|
|||||||
for (rs = sessions; rs; rs = rs->next)
|
for (rs = sessions; rs; rs = rs->next)
|
||||||
{
|
{
|
||||||
if ((rs->sa.ss.ss_family == AF_INET6)
|
if ((rs->sa.ss.ss_family == AF_INET6)
|
||||||
&& IN6_ARE_ADDR_EQUAL(sa.sin6.sin6_addr.s6_addr32, rs->sa.sin6.sin6_addr.s6_addr32))
|
&& IN6_ARE_ADDR_EQUAL(&sa.sin6.sin6_addr, &rs->sa.sin6.sin6_addr))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user