mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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) {
|
if (ip_version == 4) {
|
||||||
sa4.sin_port = htons(*port);
|
sa4.sin_port = htons(*port);
|
||||||
ret = bind(fd, &sa4, sizeof(sa4));
|
ret = bind(fd, (struct sockaddr*)&sa4, sizeof(sa4));
|
||||||
} else {
|
} else {
|
||||||
sa6.sin6_port = htons(*port);
|
sa6.sin6_port = htons(*port);
|
||||||
ret = bind(fd, &sa6, sizeof(sa6));
|
ret = bind(fd, (struct sockaddr*)&sa6, sizeof(sa6));
|
||||||
}
|
}
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue