Skip to content

Commit b3d8ca6

Browse files
committed
hash_test: remove variable name from prototype and fix a cast
1 parent f2ce932 commit b3d8ca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

regress/lib/libc/hash/hash_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: hash_test.c,v 1.2 2025/04/14 18:33:56 tb Exp $ */
1+
/* $OpenBSD: hash_test.c,v 1.3 2025/08/02 06:05:13 tb Exp $ */
22

33
/*
44
* Copyright (c) 2025 Theo Buehler <[email protected]>
@@ -757,7 +757,7 @@ struct hash_ctx {
757757
void *ctx;
758758
void (*init)(void *);
759759
void (*update)(void *, const uint8_t *, size_t);
760-
void (*final)(void *, void *final);
760+
void (*final)(void *, void *);
761761
};
762762

763763
static const struct hash_tests {
@@ -814,7 +814,7 @@ hash_test_case(struct hash_ctx *ctx, const struct hash_test_case *tc,
814814
size_t in_len = tc->in != NULL ? strlen(tc->in) : 0;
815815

816816
ctx->init(ctx->ctx);
817-
ctx->update(ctx->ctx, (uint8_t *)tc->in, in_len);
817+
ctx->update(ctx->ctx, (const uint8_t *)tc->in, in_len);
818818
ctx->final(ctx->digest, ctx->ctx);
819819

820820
if (memcmp(tc->out, ctx->digest, ctx->digest_len) != 0) {

0 commit comments

Comments
 (0)