Applied nxt_pointer_to() and nxt_value_at() where possible.

This commit is contained in:
Valentin Bartenev
2017-06-27 17:27:18 +03:00
parent f86c803098
commit dfd3cc8c0e
16 changed files with 28 additions and 37 deletions

View File

@@ -782,14 +782,7 @@ nxt_conn_proxy_write_timeout(nxt_task_t *task, void *obj, void *data)
static nxt_msec_t
nxt_conn_proxy_timeout_value(nxt_conn_t *c, uintptr_t data)
{
nxt_msec_t *timer;
nxt_conn_proxy_t *p;
p = c->socket.data;
timer = (nxt_msec_t *) ((char *) p + data);
return *timer;
return nxt_value_at(nxt_msec_t, c->socket.data, data);
}