diff options
author | Michael Adam <obnox@samba.org> | 2013-11-08 13:38:41 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-09 13:34:33 +0100 |
commit | 157879d4f67c2af4495a7f0a8d145de6bac98dc2 (patch) | |
tree | d0d0a26da0e17c3e5d2e083ee52da884bf04dd95 /src | |
parent | a7898a2c989b615142a80634fc37d433273698b9 (diff) | |
download | tinyproxy-157879d4f67c2af4495a7f0a8d145de6bac98dc2.tar.gz tinyproxy-157879d4f67c2af4495a7f0a8d145de6bac98dc2.zip |
sock: in listen_sock(), move variable for setsockopt() into scope
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to '')
-rw-r--r-- | src/sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -170,7 +170,6 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds) { struct addrinfo hints, *result, *rp; char portstr[6]; - const int on = 1; int ret = -1; assert (port > 0); @@ -193,6 +192,7 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds) for (rp = result; rp != NULL; rp = rp->ai_next) { int listenfd; int lret; + const int on = 1; char numerichost[NI_MAXHOST]; int flags = NI_NUMERICHOST; |