Fixed building by modern GCC.

This commit is contained in:
Igor Sysoev
2017-09-27 19:43:26 +03:00
parent bfa808d689
commit 9416a342b2

View File

@@ -87,7 +87,6 @@ nxt_conn_accept_alloc(nxt_task_t *task, nxt_listen_event_t *lev)
nxt_mp_t *mp; nxt_mp_t *mp;
nxt_conn_t *c; nxt_conn_t *c;
nxt_event_engine_t *engine; nxt_event_engine_t *engine;
nxt_listen_socket_t *ls;
engine = task->thread->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->socket.write_ready = 1;
c->listen = lev; c->listen = lev;
ls = lev->listen;
c->remote = nxt_sockaddr_cache_alloc(engine, lev); c->remote = nxt_sockaddr_cache_alloc(engine, lev);
if (nxt_fast_path(c->remote != NULL)) { if (nxt_fast_path(c->remote != NULL)) {
return c; return c;