diff options
author | Michael Adam <obnox@samba.org> | 2013-11-07 12:15:20 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-09 13:34:33 +0100 |
commit | 2bd919f01e8303aa1efdf39af89132a6ab9388cb (patch) | |
tree | 1701cc7ea1d60f9792505068c20054be38ac51f8 /src/sock.h | |
parent | 7eea1638bc881c4466367102919fe393b4ceb724 (diff) |
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 <obnox@samba.org>
Diffstat (limited to 'src/sock.h')
-rw-r--r-- | src/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |