From cd19ca9584bd01925e05e94e7f3bddae6880acda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sat, 1 Oct 2011 20:16:13 +0200 Subject: [PATCH] Squelch a couple of warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- src/config_file.c | 2 +- src/transport-http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config_file.c b/src/config_file.c index 64d57c5c5..a85ae1578 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -134,7 +134,7 @@ static int cvar_match_section(const char *section, const char *query) qsub = query + section_len; qdot = strchr(qsub, '.'); /* Make sure the subsections are the same length */ - if (strlen(sdot + 1) != qdot - qsub) + if (strlen(sdot + 1) != (size_t) (qdot - qsub)) return 0; /* The subsection is case-sensitive */ diff --git a/src/transport-http.c b/src/transport-http.c index 736f21b85..f740aa4e1 100644 --- a/src/transport-http.c +++ b/src/transport-http.c @@ -397,7 +397,7 @@ int git_transport_http(git_transport **out) /* on win32, the WSA context needs to be initialized * before any socket calls can be performed */ if (WSAStartup(MAKEWORD(2,2), &t->wsd) != 0) { - http_free(t); + http_free((git_transport *) t); return git__throw(GIT_EOSERR, "Winsock init failed"); } #endif