Commit cd19ca95 by Carlos Martín Nieto

Squelch a couple of warnings

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent 9ac581bf
...@@ -134,7 +134,7 @@ static int cvar_match_section(const char *section, const char *query) ...@@ -134,7 +134,7 @@ static int cvar_match_section(const char *section, const char *query)
qsub = query + section_len; qsub = query + section_len;
qdot = strchr(qsub, '.'); qdot = strchr(qsub, '.');
/* Make sure the subsections are the same length */ /* Make sure the subsections are the same length */
if (strlen(sdot + 1) != qdot - qsub) if (strlen(sdot + 1) != (size_t) (qdot - qsub))
return 0; return 0;
/* The subsection is case-sensitive */ /* The subsection is case-sensitive */
......
...@@ -397,7 +397,7 @@ int git_transport_http(git_transport **out) ...@@ -397,7 +397,7 @@ int git_transport_http(git_transport **out)
/* on win32, the WSA context needs to be initialized /* on win32, the WSA context needs to be initialized
* before any socket calls can be performed */ * before any socket calls can be performed */
if (WSAStartup(MAKEWORD(2,2), &t->wsd) != 0) { if (WSAStartup(MAKEWORD(2,2), &t->wsd) != 0) {
http_free(t); http_free((git_transport *) t);
return git__throw(GIT_EOSERR, "Winsock init failed"); return git__throw(GIT_EOSERR, "Winsock init failed");
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment