]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sort-test.c
lib: added {big,page}_alloc_zero routines
[libucw.git] / lib / sort-test.c
index 9d32277797af76f22eb929d3b948b39fc62a6d7f..c3a48c8c4c1f94ec56274ee06b28c994ae575502 100644 (file)
@@ -1,9 +1,10 @@
 /* Test for sorting routines */
 
 #include "lib/lib.h"
-#include "lib/conf.h"
+#include "lib/getopt.h"
 #include "lib/fastbuf.h"
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 
@@ -79,7 +80,10 @@ main(int argc, char **argv)
   log_init(NULL);
   if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 ||
       optind != argc - 2)
-    die("Usage: sort-test [<options>] <input> <output>\nOptions:\n" CF_USAGE);
+  {
+    fputs("This program supports only the following command-line arguments:\n" CF_USAGE, stderr);
+    exit(1);
+  }
 
   s_sort(argv[optind], argv[optind+1]);
   return 0;