chiark / gitweb /
@@@ remote works?
[mLib] / hash / t / hash-test.c
index 1718a98f03ddd731ed056159ca9b9040948552d4..1bb21e9766435c648dba6e53751adb4974ad9950 100644 (file)
@@ -81,9 +81,9 @@ static void test_unihash(const struct tvec_reg *in, struct tvec_reg *out,
 static void bench_unihash(const struct tvec_reg *in, struct tvec_reg *out,
                          void *ctx)
   { unihash_hash(ctx, 0, in[RM].v.bytes.p, in[RM].v.bytes.sz); }
-static int setup_unihash(struct tvec_state *tv,
-                        const struct tvec_env *env, void *pctx, void *ctx)
-  { unihash_setkey(ctx, 0); return (0); }
+static void setup_unihash(struct tvec_state *tv,
+                         const struct tvec_env *env, void *pctx, void *ctx)
+  { unihash_setkey(ctx, 0); }
 static const struct tvec_env unihash_benchenv =
   { sizeof(unihash_info), setup_unihash, 0, 0 };
 
@@ -123,9 +123,9 @@ static const struct tvec_regdef bench_regs[] = {
   TVEC_ENDREGS
 };
 
-static const struct tvec_bench crc32_bench =
+static const struct tvec_benchenv crc32_bench =
   { TVEC_BENCHINIT, 1, -1, RM, 0 };
-static const struct tvec_bench unihash_bench =
+static const struct tvec_benchenv unihash_bench =
   { TVEC_BENCHINIT, 1, -1, RM, &unihash_benchenv };
 
 static const struct tvec_test tests[] = {