Introduced nxt_length() macro.

This commit is contained in:
Valentin Bartenev
2018-06-25 16:51:47 +03:00
parent af31012815
commit 1a52d876f7
28 changed files with 101 additions and 99 deletions

View File

@@ -311,7 +311,7 @@ nxt_conf_vldt_type(nxt_conf_validation_t *vldt, nxt_str_t *name,
nxt_str_t expected;
nxt_bool_t serial;
nxt_uint_t value_type, n, t;
u_char buf[sizeof(NXT_CONF_VLDT_ANY_TYPE) - 1];
u_char buf[nxt_length(NXT_CONF_VLDT_ANY_TYPE)];
static nxt_str_t type_name[] = {
nxt_string("a null"),