From a03a4710cc9632e579c2c153f83cf0deda317000 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <lfleischer@calcurse.org>
Date: Fri, 11 Mar 2022 11:28:54 -0500
Subject: Fix compiler warning in SHA1 implementation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Update the signature of sha1_final() to fix the following warning:

    sha1.c:208:43: warning: argument 2 of type ‘uint8_t[20]’ {aka
    ‘unsigned char[20]’} with mismatched bound [-Warray-parameter=]

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
---
 src/sha1.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/sha1.h b/src/sha1.h
index bdba4e8..b5c4ea4 100644
--- a/src/sha1.h
+++ b/src/sha1.h
@@ -52,6 +52,6 @@ typedef struct {
 
 void sha1_init(sha1_ctx_t *);
 void sha1_update(sha1_ctx_t *, const uint8_t *, unsigned int);
-void sha1_final(sha1_ctx_t *, uint8_t *);
+void sha1_final(sha1_ctx_t *, uint8_t[SHA1_DIGESTLEN]);
 void sha1_digest(const char *, char *);
 void sha1_stream(FILE *, char *);
-- 
cgit v1.2.3-70-g09d2