mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
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:
parent
6f6369f517
commit
71714a0993
3 changed files with 14 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue