Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> --- object-store.h | 3 +-- sha1_file.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/object-store.h b/object-store.h index 47c38170e3..62763b8412 100644 --- a/object-store.h +++ b/object-store.h @@ -108,8 +108,7 @@ extern void *map_sha1_file(struct repository *r, const unsigned char *sha1, unsi * The in-core object data should be in "map". If "map" == NULL, reads the * named object using the streaming interface and rehashes it on the fly. */ -#define check_sha1_signature(r, s, m, sz, t) check_sha1_signature_##r(s, m, sz, t) -extern int check_sha1_signature_the_repository(const unsigned char *sha1, void *buf, unsigned long size, const char *type); +extern int check_sha1_signature(struct repository *r, const unsigned char *sha1, void *buf, unsigned long size, const char *type); /* * Convenience for sha1_object_info_extended() with a NULL struct diff --git a/sha1_file.c b/sha1_file.c index 8638fae9c4..1cf173da16 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -801,7 +801,7 @@ void *xmmap(void *start, size_t length, return ret; } -int check_sha1_signature_the_repository(const unsigned char *sha1, void *map, +int check_sha1_signature(struct repository *r, const unsigned char *sha1, void *map, unsigned long size, const char *type) { unsigned char real_sha1[20]; @@ -816,7 +816,7 @@ int check_sha1_signature_the_repository(const unsigned char *sha1, void *map, return hashcmp(sha1, real_sha1) ? -1 : 0; } - st = open_istream(the_repository, sha1, &obj_type, &size, NULL); + st = open_istream(r, sha1, &obj_type, &size, NULL); if (!st) return -1; -- 2.15.1.433.g936d1b9894.dirty