summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_conn_proxy.c')
-rw-r--r--src/nxt_conn_proxy.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nxt_conn_proxy.c b/src/nxt_conn_proxy.c
index 63a41c39..055a288d 100644
--- a/src/nxt_conn_proxy.c
+++ b/src/nxt_conn_proxy.c
@@ -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);
}