]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/redblack-test.c
tableprinter: definition of the table separated from handle
[libucw.git] / ucw / redblack-test.c
index 911f8250a76ec2343bb8b3bfc02b4400322b7c40..9125710229fedd844efeda0992ef1cb78da51940 100644 (file)
@@ -91,10 +91,10 @@ static void my2_dump_data(struct fastbuf *fb UNUSED, struct my2_node *n UNUSED)
 #define TREE_CONSERVE_SPACE
 #include "redblack.h"
 
-static void random_string(char *txt, uns max_len)
+static void random_string(char *txt, uint max_len)
 {
-       uns len = random() % max_len;
-       uns j;
+       uint len = random() % max_len;
+       uint j;
        for (j=0; j<len; j++)
                txt[j] = random() % 96 + 32;
        txt[len] = 0;
@@ -127,7 +127,7 @@ main(int argc, char **argv)
        struct my_tree t;
        struct my2_tree t2;
        int i;
-       cf_set_default_file(NULL);
+       cf_def_file = NULL;
        log_init(argv[0]);
        while ((opt = cf_getopt(argc, argv, options, CF_NO_LONG_OPTS, NULL)) >= 0)
                switch (opt)