]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/xtypes-test.c
Mainloop: Be benevolent when file_del() is called on a closed fd
[libucw.git] / ucw / xtypes-test.c
index dc898cc57852aa7fac9e2577af2d98193632be98..a43e0fb1e28588f70df7bb604733c6a6d0fc4152 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     UCW Library -- Test of Tableprinter Types
+ *     UCW Library -- Test of Extended Types
  *
  *     (c) 2014 Robert Kessl <robert.kessl@economia.cz>
  *
@@ -10,7 +10,7 @@
 #include <ucw/lib.h>
 #include <ucw/mempool.h>
 #include <ucw/xtypes.h>
-#include <ucw/table-types.h>
+#include <ucw/xtypes-extra.h>
 
 #include <errno.h>
 #include <stdlib.h>
@@ -49,7 +49,7 @@ static void test_size_parse_correct(struct fastbuf *out)
       die("xt_size.parse parsed an incorrect value.");
     }
 
-    const char *result_str = xt_size.format(&result, i | SIZE_UNITS_FIXED, pool);
+    const char *result_str = xt_size.format(&result, XT_SIZE_FMT_UNIT(i), pool);
     bprintf(out, "%s %s\n", size_strs[i], result_str);
 
     i++;