From 83d7ab38acb2ecf917fc66e6aefddff7cb5f7169 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Wed, 2 Aug 2017 13:01:54 +0300 Subject: Using old-style packed attribute specification for compatibility. --- src/nxt_conf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nxt_conf.c b/src/nxt_conf.c index caa2a154..15b6a615 100644 --- a/src/nxt_conf.c +++ b/src/nxt_conf.c @@ -42,7 +42,7 @@ typedef struct nxt_conf_object_s nxt_conf_object_t; struct nxt_conf_value_s { - union nxt_packed { + union { uint8_t boolean; /* 1 bit. */ int64_t integer; double number; @@ -52,14 +52,14 @@ struct nxt_conf_value_s { u_char start[NXT_CONF_MAX_SHORT_STRING]; } str; - struct nxt_packed { + struct { u_char *start; uint32_t length; - } string; + } nxt_packed string; nxt_conf_array_t *array; nxt_conf_object_t *object; - } u; + } nxt_packed u; uint8_t type; /* 3 bits. */ } nxt_aligned(8); -- cgit