From 2bd919f01e8303aa1efdf39af89132a6ab9388cb Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 7 Nov 2013 12:15:20 +0100 Subject: sock: add addr argument to listen_sock() instead of using config.ipAddr internally. This is in preparation to make it possible to call it for multiple addresses. Signed-off-by: Michael Adam --- src/sock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sock.h') diff --git a/src/sock.h b/src/sock.h index 5ed7e35..5cca744 100644 --- a/src/sock.h +++ b/src/sock.h @@ -29,7 +29,7 @@ #define MAXLINE (1024 * 4) extern int opensock (const char *host, int port, const char *bind_to); -extern int listen_sock (uint16_t port); +extern int listen_sock (const char *addr, uint16_t port); extern int socket_nonblocking (int sock); extern int socket_blocking (int sock); -- cgit v1.2.3