/* Output sorting option */
sorts = strlen(optarg);
if (5 < sorts) {
- warnx("main: only first 5 sort orders will be used");
+ warnx
+ ("main: only first 5 sort orders will be used");
strncpy(config.sort, optarg, (size_t) 5);
sorts = 5;
} else {
shared_net_names + strlen(shared_net_names) + 1,
shared_networks);
- /* FIXME: move to output.c and use FILE *outfile */
- if ((config.output_format[0] == 'x')
- || (config.output_format[0] == 'X')) {
- printf("<dhcpstatus>\n");
- };
-
parse_leases();
prepare_data();
do_counting();
if (errno == 25)
errno = 0;
- /* FIXME: move to output.c and use FILE *outfile */
- if ((config.output_format[0] == 'x')
- || (config.output_format[0] == 'X')) {
- printf("</dhcpstatus>\n");
- };
-
clean_up();
return (EXIT_SUCCESS);
}
safe_malloc(sizeof(char) * SHARED_NETWORKS_NAMES);
ranges = safe_malloc(sizeof(struct range_t) * RANGES);
+ macaddr = NULL;
/* First shared network entry is all networks */
strcpy(shared_net_names, "All networks");