From aa0009f8dcecfefd3c123baa316c2f86d3525f8c Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Mon, 27 Mar 2023 22:41:53 +0100 Subject: Convert uint32_t struct boolean members to nxt_bool_t. This commit complements the earlier one that changed a bunch of uint8_t struct members to nxt_bool_t (aka uint8_t). It's not entirely clear why these were specifically done as uint32_t's. I've checked these structure layouts with pahole(1) after this change on both 32 and 64bit and the layouts haven't changed. We may get a 3 or 7 byte hole after the nxt_bool_t or 3 bytes of padding at the end of the structure, but the structure members are still at the same offsets and the structure sizes have remained the same. Reviewed-by: Alejandro Colomar Signed-off-by: Andrew Clayton --- src/nxt_tstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nxt_tstr.c') diff --git a/src/nxt_tstr.c b/src/nxt_tstr.c index fda585b8..ca1e1ca6 100644 --- a/src/nxt_tstr.c +++ b/src/nxt_tstr.c @@ -37,7 +37,7 @@ struct nxt_tstr_query_s { nxt_tstr_cache_t *cache; nxt_uint_t waiting; - nxt_uint_t failed; /* 1 bit */ + nxt_bool_t failed; void *ctx; void *data; -- cgit