From 0adb527600a40055383970330f572e9f0399cd75 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 4 Dec 2012 23:10:54 +0100 Subject: daemon: Fix typo in libgcrypt bindings. * nix/libutil/md5.h (MD5_Final): Pass RESBUF as the first argument to `guix_hash_final'. * nix/libutil/sha1.h (SHA1_Final): Likewise. * nix/libutil/sha256.h (SHA256_Final): Likewise. --- nix/libutil/sha1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nix/libutil/sha1.h') diff --git a/nix/libutil/sha1.h b/nix/libutil/sha1.h index 8af92725ea..0eca8e310d 100644 --- a/nix/libutil/sha1.h +++ b/nix/libutil/sha1.h @@ -31,5 +31,5 @@ SHA1_Init (struct SHA_CTX *ctx) static inline void SHA1_Final (void *resbuf, struct SHA_CTX *ctx) { - guix_hash_final (ctx, ctx, GCRY_MD_SHA1); + guix_hash_final (resbuf, ctx, GCRY_MD_SHA1); } -- cgit v1.2.3