summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_errno.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-06-27 17:27:18 +0300
committerValentin Bartenev <vbart@nginx.com>2017-06-27 17:27:18 +0300
commitdfd3cc8c0eb7f3479ee08b5e518abd264da56a29 (patch)
treeb6cdbfab23ce9ea2c498bcb0f540d4847472f067 /src/nxt_errno.c
parentf86c80309885230df2960ef8e1db337f04b11926 (diff)
downloadunit-dfd3cc8c0eb7f3479ee08b5e518abd264da56a29.tar.gz
unit-dfd3cc8c0eb7f3479ee08b5e518abd264da56a29.tar.bz2
Applied nxt_pointer_to() and nxt_value_at() where possible.
Diffstat (limited to 'src/nxt_errno.c')
-rw-r--r--src/nxt_errno.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_errno.c b/src/nxt_errno.c
index 9ac79936..29f270e0 100644
--- a/src/nxt_errno.c
+++ b/src/nxt_errno.c
@@ -107,7 +107,7 @@ nxt_strerror_start(void)
return NXT_ERROR;
}
- p = (u_char *) nxt_sys_errlist + n;
+ p = nxt_pointer_to(nxt_sys_errlist, n);
for (err = 0; err < nxt_sys_nerr; err++) {
msg = strerror((int) err);