From bb87fa11ca65d1263a32f86d51d1daa89dc11544 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 30 Jan 2017 16:47:50 +0300 Subject: nxt_event_timer has been renamed to nxt_timer. --- src/nxt_event_conn_write.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nxt_event_conn_write.c') diff --git a/src/nxt_event_conn_write.c b/src/nxt_event_conn_write.c index d72ddc80..1fe7f8e9 100644 --- a/src/nxt_event_conn_write.c +++ b/src/nxt_event_conn_write.c @@ -90,7 +90,7 @@ nxt_event_conn_io_write(nxt_task_t *task, void *obj, void *data) if (sent != 0) { if (c->write_state->autoreset_timer) { - nxt_event_timer_disable(&c->write_timer); + nxt_timer_disable(&c->write_timer); } } @@ -103,7 +103,7 @@ nxt_event_conn_io_write(nxt_task_t *task, void *obj, void *data) * process other recevied events and to get new events. */ c->write_timer.handler = nxt_event_conn_write_timer_handler; - nxt_event_timer_add(engine, &c->write_timer, 0); + nxt_timer_add(engine, &c->write_timer, 0); } else if (ret == NXT_AGAIN) { /* @@ -204,7 +204,7 @@ nxt_event_conn_write_delayed(nxt_event_engine_t *engine, nxt_event_conn_t *c, nxt_event_fd_block_write(engine, &c->socket); c->write_timer.handler = nxt_event_conn_write_timer_handler; - nxt_event_timer_add(engine, &c->write_timer, timer); + nxt_timer_add(engine, &c->write_timer, timer); return 1; } @@ -288,8 +288,8 @@ nxt_event_conn_exponential_approximation(double x) static void nxt_event_conn_write_timer_handler(nxt_task_t *task, void *obj, void *data) { + nxt_timer_t *ev; nxt_event_conn_t *c; - nxt_event_timer_t *ev; ev = obj; -- cgit