mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
Wrong variable used for port.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@598 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9f1b793689
commit
b418809da1
2 changed files with 3 additions and 1 deletions
|
|
@ -489,7 +489,7 @@ pa_socket_client* pa_socket_client_new_string(pa_mainloop_api *m, const char*nam
|
||||||
|
|
||||||
s.sin_family = AF_INET;
|
s.sin_family = AF_INET;
|
||||||
memcpy(&s.sin_addr, host->h_addr, sizeof(struct in_addr));
|
memcpy(&s.sin_addr, host->h_addr, sizeof(struct in_addr));
|
||||||
s.sin_port = port;
|
s.sin_port = htons(a.port);
|
||||||
|
|
||||||
if ((c = pa_socket_client_new_sockaddr(m, &s, sizeof(s))))
|
if ((c = pa_socket_client_new_sockaddr(m, &s, sizeof(s))))
|
||||||
start_timeout(c);
|
start_timeout(c);
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
#ifdef HAVE_WS2TCPIP_H
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
static const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
|
||||||
|
static const struct in6_addr in6addr_loopback = {{ IN6ADDR_LOOPBACK_INIT }};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue