]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Potential compiling fix.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 24 Jul 2016 22:26:50 +0000 (18:26 -0400)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 24 Jul 2016 22:26:50 +0000 (18:26 -0400)
STATIC_ARRAY apparently requires that the parameter is named in some gcc
versions? In any case doesn't hurt.

src/lib/sha1.h

index 73b3110582c0b1b11da4b8fff7e2b82a044af23f..6fadeea2378f0941ab35e69c1223a270f7083450 100644 (file)
@@ -76,8 +76,8 @@ typedef struct sha1_ctxt SHA1_CTX;
 
 #define        SHA1_RESULTLEN  (160/8)
 
-extern void sha1_get_digest(const void *, size_t,
-       unsigned char [STATIC_ARRAY SHA1_RESULTLEN]);
+extern void sha1_get_digest(const void *data, size_t size,
+       unsigned char result[STATIC_ARRAY SHA1_RESULTLEN]);
 
 extern const struct hash_method hash_method_sha1;