Commit 21496c3024b3ab4168a8e4b4d1ef03da736aeac5

Etienne Samson 2018-03-30T00:20:23

stransport: fix a warning on iOS "warning: values of type 'OSStatus' should not be used as format arguments; add an explicit cast to 'int' instead [-Wformat]"

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/streams/stransport.c b/src/streams/stransport.c
index cca17bb..15b3057 100644
--- a/src/streams/stransport.c
+++ b/src/streams/stransport.c
@@ -62,7 +62,7 @@ static int stransport_connect(git_stream *stream)
 
 	ret = SSLHandshake(st->ctx);
 	if (ret != errSSLServerAuthCompleted) {
-		giterr_set(GITERR_SSL, "unexpected return value from ssl handshake %d", ret);
+		giterr_set(GITERR_SSL, "unexpected return value from ssl handshake %d", (int)ret);
 		return -1;
 	}