summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-07-18 18:00:15 +0300
committerValentin Bartenev <vbart@nginx.com>2017-07-18 18:00:15 +0300
commitf16510585fc139b667261bdfcd759e41553abb36 (patch)
tree3f167186f3f854558279d22c6243322eef5398c9 /src
parent9183ea3f710fe04bbeabed941061cce503eb6968 (diff)
downloadunit-f16510585fc139b667261bdfcd759e41553abb36.tar.gz
unit-f16510585fc139b667261bdfcd759e41553abb36.tar.bz2
Configuration: reduced memory consumption.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nxt_conf.c b/src/nxt_conf.c
index 2dc4a69c..b4c6df47 100644
--- a/src/nxt_conf.c
+++ b/src/nxt_conf.c
@@ -40,9 +40,9 @@ typedef struct nxt_conf_array_s nxt_conf_array_t;
typedef struct nxt_conf_object_s nxt_conf_object_t;
-struct nxt_conf_value_s {
- union {
- uint32_t boolean; /* 1 bit. */
+struct nxt_aligned(8) nxt_conf_value_s {
+ union nxt_packed {
+ uint8_t boolean; /* 1 bit. */
int64_t integer;
double number;
u_char str[1 + NXT_CONF_MAX_SHORT_STRING];
@@ -51,7 +51,7 @@ struct nxt_conf_value_s {
nxt_conf_object_t *object;
} u;
- nxt_conf_value_type_t type:8; /* 3 bits. */
+ uint8_t type; /* 3 bits. */
};