mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
use bitmap for booleans and other config that has known size
Bitmaps are more c style than bool coming from c++ land. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
5ed9958b69
commit
b524296016
4 changed files with 72 additions and 72 deletions
|
|
@ -44,7 +44,6 @@
|
|||
|
||||
# include <config.h>
|
||||
# include <arpa/inet.h>
|
||||
# include <stdbool.h>
|
||||
# include <stddef.h>
|
||||
# include <stdio.h>
|
||||
# include <string.h>
|
||||
|
|
@ -198,16 +197,18 @@ struct configuration_t {
|
|||
char *dhcpdlease_file;
|
||||
char output_format[2];
|
||||
struct output_sort *sorts;
|
||||
bool reverse_order;
|
||||
char *output_file;
|
||||
int output_limit[2];
|
||||
bool backups_found;
|
||||
bool snet_alarms;
|
||||
double warning;
|
||||
double critical;
|
||||
double warn_count;
|
||||
double crit_count;
|
||||
double minsize;
|
||||
unsigned int
|
||||
reverse_order:1,
|
||||
backups_found:1,
|
||||
snet_alarms:1,
|
||||
header_limit:3,
|
||||
number_limit:3;
|
||||
};
|
||||
/* Global variables */
|
||||
/* \var prefix_length Length of each prefix. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue