From: Willy Tarreau Date: Mon, 28 Nov 2022 17:48:11 +0000 (+0100) Subject: CLEANUP: stick-table: fill alignment holes in the stktable struct X-Git-Tag: v2.7.0~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63b5b33ba8f9330193bce231a16e17a9e01457fb;p=thirdparty%2Fhaproxy.git CLEANUP: stick-table: fill alignment holes in the stktable struct There were two 32-bit holes in the stktable struct surrounding 32-bit words, so let's just reorder them a little bit to address the issue. --- diff --git a/include/haproxy/stick_table-t.h b/include/haproxy/stick_table-t.h index cc9fe93576..176771225f 100644 --- a/include/haproxy/stick_table-t.h +++ b/include/haproxy/stick_table-t.h @@ -180,8 +180,8 @@ struct stktable { } peers; unsigned long type; /* type of table (determines key format) */ - unsigned int server_key_type; /* What type of key is used to identify servers */ size_t key_size; /* size of a key, maximum size in case of string */ + unsigned int server_key_type; /* What type of key is used to identify servers */ unsigned int size; /* maximum number of sticky sessions in table */ unsigned int current; /* number of sticky sessions currently in table */ int nopurge; /* if non-zero, don't purge sticky sessions when full */