X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdhcpd-pools.c;h=e3467cb2a7ded4863ae6986806558264d3331597;hb=c11cc921bc68bde380dddbdef3dd347df4fce7c0;hp=717743d6351eac89247d7c7afefa38972627ce2c;hpb=ff572a4a55cd3d693d5e5b3f0a9757b6b9088017;p=debian%2Fdhcpd-pools.git diff --git a/src/dhcpd-pools.c b/src/dhcpd-pools.c index 717743d..e3467cb 100644 --- a/src/dhcpd-pools.c +++ b/src/dhcpd-pools.c @@ -140,7 +140,7 @@ int main(int argc, char **argv) /* 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, @@ -246,6 +246,7 @@ int main(int argc, char **argv) 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("\n"); @@ -271,6 +272,7 @@ int main(int argc, char **argv) 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("\n");