summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_accept.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-27 19:43:26 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-27 19:43:26 +0300
commit9416a342b2b90ad813a6504d2bbe97bc3c7f51ff (patch)
tree99993cd52270620941842abb499aebeae4b50e38 /src/nxt_conn_accept.c
parentbfa808d68997d74bfe0d54196bbbb649646787c1 (diff)
downloadunit-9416a342b2b90ad813a6504d2bbe97bc3c7f51ff.tar.gz
unit-9416a342b2b90ad813a6504d2bbe97bc3c7f51ff.tar.bz2
Fixed building by modern GCC.
Diffstat (limited to 'src/nxt_conn_accept.c')
-rw-r--r--src/nxt_conn_accept.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nxt_conn_accept.c b/src/nxt_conn_accept.c
index 38b36270..53bbe83e 100644
--- a/src/nxt_conn_accept.c
+++ b/src/nxt_conn_accept.c
@@ -84,10 +84,9 @@ nxt_listen_event(nxt_task_t *task, nxt_listen_socket_t *ls)
static nxt_conn_t *
nxt_conn_accept_alloc(nxt_task_t *task, nxt_listen_event_t *lev)
{
- nxt_mp_t *mp;
- nxt_conn_t *c;
- nxt_event_engine_t *engine;
- nxt_listen_socket_t *ls;
+ nxt_mp_t *mp;
+ nxt_conn_t *c;
+ nxt_event_engine_t *engine;
engine = task->thread->engine;
@@ -106,8 +105,6 @@ nxt_conn_accept_alloc(nxt_task_t *task, nxt_listen_event_t *lev)
c->socket.write_ready = 1;
c->listen = lev;
- ls = lev->listen;
-
c->remote = nxt_sockaddr_cache_alloc(engine, lev);
if (nxt_fast_path(c->remote != NULL)) {
return c;