X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/67b5031ec6d160b5cae425466a34d1be3b211dd4..c91413e6acbc8d157ff52ceb8cd78cee97403584:/hash/t/hash-test.c diff --git a/hash/t/hash-test.c b/hash/t/hash-test.c index 1718a98..1bb21e9 100644 --- a/hash/t/hash-test.c +++ b/hash/t/hash-test.c @@ -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[] = {