Fixed building on Solaris by Sun C.

This commit is contained in:
Max Romanov
2017-07-25 16:18:31 +03:00
parent 578cd547c0
commit 316c77a9de
5 changed files with 9 additions and 11 deletions

View File

@@ -37,12 +37,12 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_root_members[] = {
{ nxt_string("listeners"),
NXT_CONF_OBJECT,
&nxt_conf_vldt_object_iterator,
&nxt_conf_vldt_listener },
(void *) &nxt_conf_vldt_listener },
{ nxt_string("applications"),
NXT_CONF_OBJECT,
&nxt_conf_vldt_object_iterator,
&nxt_conf_vldt_app },
(void *) &nxt_conf_vldt_app },
{ nxt_null_string, 0, NULL, NULL }
};
@@ -301,7 +301,7 @@ nxt_conf_vldt_object_iterator(nxt_conf_value_t *conf, nxt_conf_value_t *value,
nxt_conf_value_t *member;
nxt_conf_vldt_member_t validator;
validator = data;
validator = (nxt_conf_vldt_member_t) data;
index = 0;
for ( ;; ) {
@@ -315,6 +315,4 @@ nxt_conf_vldt_object_iterator(nxt_conf_value_t *conf, nxt_conf_value_t *value,
return NXT_ERROR;
}
}
return NXT_OK;
}