summaryrefslogtreecommitdiffstats
path: root/git-access.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-08-17 18:29:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-17 21:09:22 -0700
commit56c90efba8748f162da0ba1b4e9b9331e1748124 (patch)
treeb1c6b32370f571374a8385a748262ad3fdd77661 /git-access.c
parentaa48dfea27388125f0da0b175ce13d48dd96f1a6 (diff)
downloadsubsurface-56c90efba8748f162da0ba1b4e9b9331e1748124.tar.gz
Explicit cast to stop compiler warning
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'git-access.c')
-rw-r--r--git-access.c2
1 files changed, 1 insertions, 1 deletions
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;