From e77bec30c802af34782414bfa5ee382c1acf6e9e Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" <hell...@atdotde.de> Date: Mon, 17 Aug 2015 18:29:21 +0200 Subject: [PATCH] Explicit cast to stop compiler warning
Signed-off-by: Robert C. Helling <hell...@atdotde.de> --- git-access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-access.c b/git-access.c index 82f7617..c6a1648 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; -- 1.9.5 (Apple Git-50.3)
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface