From: Willy Tarreau Date: Sat, 22 Apr 2023 12:57:42 +0000 (+0200) Subject: CLEANUP: protocol: move the nb_receivers to plug a hole in protocol X-Git-Tag: v2.8-dev8~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c538df28c972b75ef8f543b60d3a2c67f9e98e8;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/protocol-t.h b/include/haproxy/protocol-t.h index 9a3420c131..0419191ada 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) */ };