mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-20 12:40:46 +00:00
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.
This commit is contained in:
parent
798d6b4124
commit
4c538df28c
@ -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) */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user