summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-25 16:18:31 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-25 16:18:31 +0300
commit316c77a9de638c54e2574c205276917ff442d06e (patch)
tree7adb1b8cd00a8f54298840531e83f8242907aa60 /src/nxt_conf_validation.c
parent578cd547c0f121267f8f66a0523fab67c433a90b (diff)
downloadunit-316c77a9de638c54e2574c205276917ff442d06e.tar.gz
unit-316c77a9de638c54e2574c205276917ff442d06e.tar.bz2
Fixed building on Solaris by Sun C.
Diffstat (limited to '')
-rw-r--r--src/nxt_conf_validation.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index 45784e8e..0608eaa9 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -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;
}