mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Explicit cast to stop compiler warning
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
aa48dfea27
commit
56c90efba8
1 changed files with 1 additions and 1 deletions
|
@ -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_Update(&ctx, cert509->data, cert509->len);
|
||||||
SHA1_Final(hash, &ctx);
|
SHA1_Final(hash, &ctx);
|
||||||
hash[20] = 0;
|
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",
|
fprintf(stderr, "cloud certificate considered %s, forcing it valid\n",
|
||||||
valid ? "valid" : "not valid");
|
valid ? "valid" : "not valid");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue