summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-06-09 21:38:10 +0300
committerValentin Bartenev <vbart@nginx.com>2017-06-09 21:38:10 +0300
commitc5cd7e5e975b37f6ca1e969da269739218e791c5 (patch)
tree7f966cbd14597ea7e7ea7646705a2e3666448621 /src
parentcb1624fa422d5f6cedc9ce09794c0ff589a5e5e1 (diff)
downloadunit-c5cd7e5e975b37f6ca1e969da269739218e791c5.tar.gz
unit-c5cd7e5e975b37f6ca1e969da269739218e791c5.tar.bz2
Fixed building by GCC 7 (broken in 0b10a73d4993).
Diffstat (limited to 'src')
-rw-r--r--src/nxt_router.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 1f96a1df..180d7017 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -681,11 +681,9 @@ static void
nxt_router_listen_socket_create(nxt_task_t *task, void *obj, void *data)
{
nxt_listen_event_t *listen;
- nxt_event_engine_t *engine;
nxt_listen_socket_t *ls;
nxt_socket_conf_joint_t *joint;
- engine = obj;
joint = data;
ls = &joint->socket_conf->listen;
@@ -864,7 +862,7 @@ nxt_router_thread_exit_handler(nxt_task_t *task, void *obj, void *data)
nxt_event_engine_t *engine;
nxt_thread_handle_t handle;
- handle = obj;
+ handle = (nxt_thread_handle_t) obj;
link = data;
nxt_thread_wait(handle);