From 56c90efba8748f162da0ba1b4e9b9331e1748124 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 17 Aug 2015 18:29:21 +0200 Subject: Explicit cast to stop compiler warning Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- git-access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-access.c b/git-access.c index 82f761710..c6a1648b1 100644 --- a/git-access.c +++ b/git-access.c @@ -143,7 +143,7 @@ int certificate_check_cb(git_cert *cert, int valid, const char *host, void *payl SHA1_Update(&ctx, cert509->data, cert509->len); SHA1_Final(hash, &ctx); hash[20] = 0; - if (same_string(hash, KNOWN_CERT)) { + if (same_string((char *)hash, KNOWN_CERT)) { fprintf(stderr, "cloud certificate considered %s, forcing it valid\n", valid ? "valid" : "not valid"); return 1; -- cgit v1.2.3-70-g09d2