warnings: ensure optimal packing in structures

Add padding where needed and order structure when it makes alignment fall
naturally to better order, with a single padding at the end of structure.

Reference: http://www.catb.org/esr/structure-packing/
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2019-02-17 11:25:09 +00:00
parent 6f6369f517
commit 71714a0993
No known key found for this signature in database
GPG key ID: 0D46FEF7E61DBB46
3 changed files with 14 additions and 9 deletions

View file

@ -340,9 +340,9 @@ int main(int argc, char **argv)
.warn_count = 0x100000000, /* == 2^32 that is the entire IPv4 space */
.crit_count = 0x100000000, /* basically turns off the count criteria */
.header_limit = 8,
.color_mode = color_auto,
.ranges_size = 64,
.ip_version = IPvUNKNOWN,
.color_mode = color_auto,
0
};
int ret_val;