diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-09-27 19:43:26 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-09-27 19:43:26 +0300 |
commit | 9416a342b2b90ad813a6504d2bbe97bc3c7f51ff (patch) | |
tree | 99993cd52270620941842abb499aebeae4b50e38 /src | |
parent | bfa808d68997d74bfe0d54196bbbb649646787c1 (diff) | |
download | unit-9416a342b2b90ad813a6504d2bbe97bc3c7f51ff.tar.gz unit-9416a342b2b90ad813a6504d2bbe97bc3c7f51ff.tar.bz2 |
Fixed building by modern GCC.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_conn_accept.c | 9 |
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; |