/* Output sorting option */
if (optarg != NULL) {
sorts = strlen(optarg);
- if (sorts > 5) {
+ if (5 < sorts) {
eprintf
("main: only 5 first sort orders will be used");
strncpy(config.sort, optarg,
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");
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");