Commit 42593a69 by Vicent Martí

Merge pull request #1957 from linquize/warning3

Fix warnings
parents 6414fd33 fb190bbb
...@@ -114,7 +114,7 @@ int main(int argc, char *argv[]) ...@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
rawdata+i); rawdata+i);
} }
i = eol - rawdata + 1; i = (int)(eol - rawdata + 1);
line++; line++;
} }
......
...@@ -662,7 +662,7 @@ void gitno_connection_data_free_ptrs(gitno_connection_data *d) ...@@ -662,7 +662,7 @@ void gitno_connection_data_free_ptrs(gitno_connection_data *d)
static char* unescape(char *str) static char* unescape(char *str)
{ {
int x, y; int x, y;
int len = strlen(str); size_t len = strlen(str);
for (x=y=0; str[y]; ++x, ++y) { for (x=y=0; str[y]; ++x, ++y) {
if ((str[x] = str[y]) == '%') { if ((str[x] = str[y]) == '%') {
......
...@@ -272,7 +272,7 @@ static int write_object(git_buf *buf, git_packbuilder *pb, git_pobject *po) ...@@ -272,7 +272,7 @@ static int write_object(git_buf *buf, git_packbuilder *pb, git_pobject *po)
git_buf zbuf = GIT_BUF_INIT; git_buf zbuf = GIT_BUF_INIT;
git_otype type; git_otype type;
unsigned char hdr[10]; unsigned char hdr[10];
unsigned int hdr_len; size_t hdr_len;
unsigned long size; unsigned long size;
void *data; void *data;
......
...@@ -618,7 +618,7 @@ on_error: ...@@ -618,7 +618,7 @@ on_error:
static int filter_refs(git_remote *remote) static int filter_refs(git_remote *remote)
{ {
const git_remote_head **heads; git_remote_head **heads;
size_t heads_len, i; size_t heads_len, i;
git_vector_clear(&remote->refs); git_vector_clear(&remote->refs);
......
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