mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
7b3ef1ac4e
commit
d776d378cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue