pipewire: module-protocol-simple: cast argument of accept4()

With glibc omitting the cast does not trigger a warning because
glibc uses GCC's `transparent_union` attribute. musl does not
do that, so to avoid getting warnings there, add the cast.

https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-transparent_005funion-type-attribute
This commit is contained in:
Barnabás Pőcze 2023-02-25 20:21:45 +01:00
parent 7b3ef1ac4e
commit d776d378cd

View file

@ -523,7 +523,7 @@ on_connect(void *data, int fd, uint32_t mask)
struct pw_properties *props = NULL;
addrlen = sizeof(addr);
client_fd = accept4(fd, &addr, &addrlen, SOCK_NONBLOCK | SOCK_CLOEXEC);
client_fd = accept4(fd, (struct sockaddr *) &addr, &addrlen, SOCK_NONBLOCK | SOCK_CLOEXEC);
if (client_fd < 0)
goto error;