From 37c16d180104cde7e74e99a6261f97e0727fd7c6 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 6 Sep 2017 17:13:18 +0300 Subject: Fixed building by Sun C on Solaris. --- src/nxt_conf_validation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit