summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-06 17:13:18 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-06 17:13:18 +0300
commit37c16d180104cde7e74e99a6261f97e0727fd7c6 (patch)
tree1fd56d583115816023099bf5c9380c2a117c1370 /src/nxt_conf_validation.c
parent05f93d931bd9b00b1ec9bdb84fae1f5c57367063 (diff)
downloadunit-37c16d180104cde7e74e99a6261f97e0727fd7c6.tar.gz
unit-37c16d180104cde7e74e99a6261f97e0727fd7c6.tar.bz2
Fixed building by Sun C on Solaris.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index de3d537c..c5180a20 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -359,7 +359,8 @@ nxt_conf_vldt_system(nxt_conf_value_t *conf, nxt_conf_value_t *value,
nxt_conf_vldt_system_t vldt;
char string[32];
- vldt = data;
+ /* The cast is required by Sun C. */
+ vldt = (nxt_conf_vldt_system_t) data;
nxt_conf_get_string(value, &name);