]> mj.ucw.cz Git - libucw.git/blobdiff - debug/sorter/retros.c
Forgot to adapt retros.c to the new MD5 interface.
[libucw.git] / debug / sorter / retros.c
index e85dfe853934e528ce344d2157bc27748c0f53ff..ea6de037ea0ddf662bd8e8d0123797e80f79f1f5 100644 (file)
@@ -5,8 +5,8 @@
  */
 
 #include "sherlock/sherlock.h"
-#include "lib/getopt.h"
-#include "lib/md5.h"
+#include "ucw/getopt.h"
+#include "ucw/md5.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -50,13 +50,13 @@ static int comp_ind(const void *x, const void *y)
 #define ASORT_ELT(i) a[i].key
 #define ASORT_SWAP(i,j) do { struct elt t=a[i]; a[i]=a[j]; a[j]=t; } while (0)
 #define ASORT_EXTRA_ARGS , struct elt *a
-#include "lib/arraysort.h"
+#include "ucw/arraysort.h"
 
 #define ASORT_PREFIX(x) asi_##x
 #define ASORT_KEY_TYPE u32
 #define ASORT_ELT(i) ind[i]->key
 #define ASORT_SWAP(i,j) do { struct elt *t=ind[i]; ind[i]=ind[j]; ind[j]=t; } while (0)
-#include "lib/arraysort.h"
+#include "ucw/arraysort.h"
 
 static void r1_sort(void)
 {
@@ -618,8 +618,8 @@ static void mk_ary(void)
 {
   ary = array0;
   alt = array1;
-  struct MD5Context ctx;
-  MD5Init(&ctx);
+  md5_context ctx;
+  md5_init(&ctx);
   u32 block[16];
   bzero(block, sizeof(block));
 
@@ -630,7 +630,7 @@ static void mk_ary(void)
       if (!(i % 4))
        {
          block[i%16] = i;
-         MD5Transform(ctx.buf, block);
+         md5_transform(ctx.buf, block);
        }
       ary[i].key = ctx.buf[i%4];
 #else