From da648bc24cebcf3fff9073693871183fd95d4c92 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 30 Jan 2007 08:14:10 +0000 Subject: K. Piche * ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere --- lib/libalpm/sha1.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libalpm/sha1.c') diff --git a/lib/libalpm/sha1.c b/lib/libalpm/sha1.c index a2caa72b..cf1831ea 100644 --- a/lib/libalpm/sha1.c +++ b/lib/libalpm/sha1.c @@ -27,6 +27,8 @@ #endif #include +#include "alpm.h" +#include "log.h" #include "util.h" #include "sha1.h" @@ -390,6 +392,8 @@ char* _alpm_SHAFile(char *filename) { unsigned char buffer[1024], digest[20]; char *ret; + ALPM_LOG_FUNC; + if((file = fopen(filename, "rb")) == NULL) { fprintf(stderr, _("%s can't be opened\n"), filename); } else { -- cgit v1.2.3