aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2022-03-11 11:28:54 -0500
committerLukas Fleischer <lfleischer@calcurse.org>2022-03-11 11:29:51 -0500
commita03a4710cc9632e579c2c153f83cf0deda317000 (patch)
treea521e134cbb340c2da7d46d9b3728ca240def76d /src
parent20b23cc32edd4ad8aed1699b3b5d372efeac5c67 (diff)
downloadcalcurse-a03a4710cc9632e579c2c153f83cf0deda317000.tar.gz
calcurse-a03a4710cc9632e579c2c153f83cf0deda317000.zip
Fix compiler warning in SHA1 implementation
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>
Diffstat (limited to 'src')
-rw-r--r--src/sha1.h2
1 files changed, 1 insertions, 1 deletions
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 *);