mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Add a type cast necessary to compile on FreeBSD.
This commit is contained in:
parent
14e044a92c
commit
781b7b187a
1 changed files with 2 additions and 2 deletions
|
|
@ -579,10 +579,10 @@ static int create_udp_socket(struct impl *impl, uint16_t *port)
|
|||
|
||||
if (ip_version == 4) {
|
||||
sa4.sin_port = htons(*port);
|
||||
ret = bind(fd, &sa4, sizeof(sa4));
|
||||
ret = bind(fd, (struct sockaddr*)&sa4, sizeof(sa4));
|
||||
} else {
|
||||
sa6.sin6_port = htons(*port);
|
||||
ret = bind(fd, &sa6, sizeof(sa6));
|
||||
ret = bind(fd, (struct sockaddr*)&sa6, sizeof(sa6));
|
||||
}
|
||||
if (ret == 0)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue