From 1e951a9f3b3c35cc108d45acd73147a8dda36f6c Mon Sep 17 00:00:00 2001 From: Tharre Date: Sun, 24 Aug 2014 00:24:54 +0200 Subject: Replace openssl SHA1 functions with custom version --- src/build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build.c') diff --git a/src/build.c b/src/build.c index bf4d023..7bbf809 100644 --- a/src/build.c +++ b/src/build.c @@ -19,8 +19,8 @@ #include #include /* dirname(), basename() */ -#include +#include "sha1.h" #include "build.h" #include "util.h" #include "filepath.h" @@ -371,7 +371,7 @@ static void hash_file(const char *target, unsigned char (*hash)[HASHSIZE]) { static void write_dep_hash(const char *target) { assert(getenv("REDO_MAGIC")); - unsigned char hash[SHA_DIGEST_LENGTH]; + unsigned char hash[HASHSIZE]; unsigned magic = atoi(getenv("REDO_MAGIC")); hash_file(target, &hash); -- cgit v1.2.3-70-g09d2