diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2022-12-27 20:13:04 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2022-12-27 20:13:04 +0000 |
commit | 57bcd320e2c92d4003009ff364ee5cf6c33a465b (patch) | |
tree | b9e6d7ac97a719aa327ff140fce95f02e4d8f51f /sys/crypto | |
parent | f6c770ef68ef15fa78863f861947f4249c092ae3 (diff) |
Fix array bounds mismatch with clang 15
New warning -Warray-parameter is a bit overzealous.
ok millert@ tb@
Diffstat (limited to 'sys/crypto')
-rw-r--r-- | sys/crypto/sha2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/crypto/sha2.c b/sys/crypto/sha2.c index f789ef3f55b..79e9f436dda 100644 --- a/sys/crypto/sha2.c +++ b/sys/crypto/sha2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha2.c,v 1.20 2022/08/29 06:08:03 jsg Exp $ */ +/* $OpenBSD: sha2.c,v 1.21 2022/12/27 20:13:03 patrick Exp $ */ /* * FILE: sha2.c @@ -470,7 +470,7 @@ SHA256Update(SHA2_CTX *context, const void *dataptr, size_t len) } void -SHA256Final(u_int8_t digest[], SHA2_CTX *context) +SHA256Final(u_int8_t *digest, SHA2_CTX *context) { unsigned int usedspace; @@ -795,7 +795,7 @@ SHA512Last(SHA2_CTX *context) } void -SHA512Final(u_int8_t digest[], SHA2_CTX *context) +SHA512Final(u_int8_t *digest, SHA2_CTX *context) { SHA512Last(context); @@ -834,7 +834,7 @@ SHA384Update(SHA2_CTX *context, const void *data, size_t len) } void -SHA384Final(u_int8_t digest[], SHA2_CTX *context) +SHA384Final(u_int8_t *digest, SHA2_CTX *context) { SHA512Last(context); |