mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-09-29 04:25:57 -04:00
Fix: Corrected prototype for sock_get_server_socket()
This commit is contained in:
parent
bb12858abe
commit
2b39d7f178
@ -879,13 +879,16 @@ sock_t sock_connect_wto_bind (const char *hostname, int port, const char *bnd, i
|
||||
** interface. if interface is null, listen on all interfaces.
|
||||
** returns the socket, or SOCK_ERROR on failure
|
||||
*/
|
||||
sock_t sock_get_server_socket(int port, const char *sinterface)
|
||||
sock_t sock_get_server_socket (int port, const char *sinterface, bool prefer_inet6)
|
||||
{
|
||||
struct sockaddr_in sa;
|
||||
int error, opt;
|
||||
sock_t sock;
|
||||
char ip[MAX_ADDR_LEN];
|
||||
|
||||
/* Not supported. */
|
||||
(void)prefer_inet6;
|
||||
|
||||
if (port < 0)
|
||||
return SOCK_ERROR;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user