Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-09-08 13:15:42 +0400
committerLinquize <linquize@yahoo.com.hk>2013-09-19 19:14:06 +0400
commit66566516ce5171111ea4c5a8160adb4b0b0dc675 (patch)
tree20d7374e602911f282ddfedf8449c8b8176d85d9 /src/transports
parentef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff)
Fix warning
Diffstat (limited to 'src/transports')
-rw-r--r--src/transports/winhttp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index 29d4ba619..592460f2a 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -195,7 +195,7 @@ static int winhttp_stream_connect(winhttp_stream *s)
}
/* Set proxy if necessary */
- if (git_remote__get_http_proxy(t->owner->owner, t->use_ssl, &proxy_url) < 0)
+ if (git_remote__get_http_proxy(t->owner->owner, !!t->use_ssl, &proxy_url) < 0)
goto on_error;
if (proxy_url) {
@@ -939,7 +939,7 @@ static int winhttp_connect(
t->connection = WinHttpConnect(
t->session,
host,
- port,
+ (INTERNET_PORT)port,
0);
if (!t->connection) {