summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2023-04-22 14:57:42 +0200
committerWilly Tarreau <w@1wt.eu>2023-04-23 09:46:15 +0200
commit4c538df28c972b75ef8f543b60d3a2c67f9e98e8 (patch)
treed1c7a000eee75fe71331bf8f279ddde59b3a2c62 /include
parent798d6b41245ce34abc6d7a2ba14cc4f3dfecdaf1 (diff)
downloadhaproxy-4c538df28c972b75ef8f543b60d3a2c67f9e98e8.tar.gz
CLEANUP: protocol: move the nb_receivers to plug a hole in protocol
This field forces an unaligned hole between two list heads. Let's move it up where it will be more easily combined with other fields. In addition, turn it to unsigned while it's still not used.
Diffstat (limited to 'include')
-rw-r--r--include/haproxy/protocol-t.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/haproxy/protocol-t.h b/include/haproxy/protocol-t.h
index 9a3420c13..0419191ad 100644
--- a/include/haproxy/protocol-t.h
+++ b/include/haproxy/protocol-t.h
@@ -127,9 +127,9 @@ struct protocol {
/* default I/O handler */
void (*default_iocb)(int fd); /* generic I/O handler (typically accept callback) */
-
+ /* 4-byte hole here on 64-bit machines */
+ uint nb_receivers; /* number of receivers (under proto_lock) */
struct list receivers; /* list of receivers using this protocol (under proto_lock) */
- int nb_receivers; /* number of receivers (under proto_lock) */
struct list list; /* list of registered protocols (under proto_lock) */
};