X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fsort-test.c;h=c3a48c8c4c1f94ec56274ee06b28c994ae575502;hb=e7fcd506163c155afa5313fb28ee7e931018117f;hp=14f4a65866de59b902b9a308a597ac967ff4c455;hpb=f282fc30d94338be07c13a86765fdbe3b2536c0c;p=libucw.git diff --git a/lib/sort-test.c b/lib/sort-test.c index 14f4a658..c3a48c8c 100644 --- a/lib/sort-test.c +++ b/lib/sort-test.c @@ -1,13 +1,12 @@ /* Test for sorting routines */ #include "lib/lib.h" -#include "lib/conf2.h" +#include "lib/getopt.h" #include "lib/fastbuf.h" #include #include #include -#include struct key { char line[4096]; @@ -79,7 +78,7 @@ int main(int argc, char **argv) { log_init(NULL); - if (cf_get_opt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 || + if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 || optind != argc - 2) { fputs("This program supports only the following command-line arguments:\n" CF_USAGE, stderr);