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

@@ -17,7 +17,7 @@ nxt_str_alloc(nxt_mp_t *mp, size_t length)
if (nxt_fast_path(s != NULL)) {
s->length = length;
s->start = (u_char *) s + sizeof(nxt_str_t);
s->start = nxt_pointer_to(s, sizeof(nxt_str_t));
}
return s;