mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-25 21:38:32 -04:00
modules: invert memcmp logic
memcmp returns 0 when the memory is equal. This function is not used currently.
This commit is contained in:
parent
9843ee858f
commit
0c193b2b82
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ static inline bool pw_net_addr_is_any(struct sockaddr_storage *addr)
|
||||||
return sa->sin_addr.s_addr == INADDR_ANY;
|
return sa->sin_addr.s_addr == INADDR_ANY;
|
||||||
} else if (addr->ss_family == AF_INET6) {
|
} else if (addr->ss_family == AF_INET6) {
|
||||||
struct sockaddr_in6 *sa = (struct sockaddr_in6*)addr;
|
struct sockaddr_in6 *sa = (struct sockaddr_in6*)addr;
|
||||||
return memcmp(&sa->sin6_addr, &in6addr_any, sizeof(sa->sin6_addr));
|
return memcmp(&sa->sin6_addr, &in6addr_any, sizeof(sa->sin6_addr)) == 0;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue