summaryrefslogtreecommitdiff
path: root/lib/sha1.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-05-05 18:13:16 +0200
committerBruno Haible <bruno@clisp.org>2018-05-05 18:13:16 +0200
commitabe288ce682dea7046c6ee4cb64d59945f548ce3 (patch)
treed3397db166fc4a285b0f0a28878e900a0d062610 /lib/sha1.c
parentba0ffea058b58bd9634173db48452884ee077da8 (diff)
downloadgnulib-abe288ce682dea7046c6ee4cb64d59945f548ce3.tar.gz
af_alg: Improve function signature.
* lib/af_alg.h (afalg_stream): Swap second and third argument. * lib/af_alg.c (afalg_stream): Likewise. * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
Diffstat (limited to 'lib/sha1.c')
-rw-r--r--lib/sha1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sha1.c b/lib/sha1.c
index a84bf211ad..b670267c2b 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -138,7 +138,7 @@ sha1_stream (FILE *stream, void *resblock)
#ifdef HAVE_LINUX_IF_ALG_H
int ret;
- ret = afalg_stream(stream, resblock, "sha1", SHA1_DIGEST_SIZE);
+ ret = afalg_stream (stream, "sha1", resblock, SHA1_DIGEST_SIZE);
if (!ret)
return 0;