]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sorter/sort-test.c
Created a local TODO list.
[libucw.git] / lib / sorter / sort-test.c
index 2909599f838d64e245c4126283e7aba70a7331c9..8cf1433f8e540b7626462b7541b51c91d6172b01 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 /*** Time measurement ***/
 
 static void
 start(void)
 {
+  sync();
   init_timer();
 }
 
 static void
 stop(void)
 {
+  sync();
   log(L_INFO, "Test took %.3fs", get_timer() / 1000.);
 }
 
@@ -407,7 +410,6 @@ static int s5_gen(struct s5_pair *p)
 
 static void s5_write_merged(struct fastbuf *f, struct key5 **keys, void **data, uns n, void *buf)
 {
-  /* FIXME: Allow mode where this function is not defined? */
   u32 *a = buf;
   uns m = 0;
   for (uns i=0; i<n; i++)