diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2022-03-11 11:28:54 -0500 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2022-03-11 11:29:51 -0500 |
commit | a03a4710cc9632e579c2c153f83cf0deda317000 (patch) | |
tree | a521e134cbb340c2da7d46d9b3728ca240def76d | |
parent | 20b23cc32edd4ad8aed1699b3b5d372efeac5c67 (diff) | |
download | calcurse-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>
-rw-r--r-- | src/sha1.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 *); |