From d5fa2c06ac310298c50766295253bbc26d8a5c78 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Aug 2025 06:05:13 +0000 Subject: hash_test: remove variable name from prototype and fix a cast --- src/regress/lib/libc/hash/hash_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/regress/lib/libc/hash/hash_test.c b/src/regress/lib/libc/hash/hash_test.c index f9dc641186..c04a0458fe 100644 --- a/src/regress/lib/libc/hash/hash_test.c +++ b/src/regress/lib/libc/hash/hash_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hash_test.c,v 1.2 2025/04/14 18:33:56 tb Exp $ */ +/* $OpenBSD: hash_test.c,v 1.3 2025/08/02 06:05:13 tb Exp $ */ /* * Copyright (c) 2025 Theo Buehler @@ -757,7 +757,7 @@ struct hash_ctx { void *ctx; void (*init)(void *); void (*update)(void *, const uint8_t *, size_t); - void (*final)(void *, void *final); + void (*final)(void *, void *); }; static const struct hash_tests { @@ -814,7 +814,7 @@ hash_test_case(struct hash_ctx *ctx, const struct hash_test_case *tc, size_t in_len = tc->in != NULL ? strlen(tc->in) : 0; ctx->init(ctx->ctx); - ctx->update(ctx->ctx, (uint8_t *)tc->in, in_len); + ctx->update(ctx->ctx, (const uint8_t *)tc->in, in_len); ctx->final(ctx->digest, ctx->ctx); if (memcmp(tc->out, ctx->digest, ctx->digest_len) != 0) { -- cgit v1.2.3-55-g6feb