]> git.proxmox.com Git - libgit2.git/commitdiff
Fix warnings
authorLinquize <linquize@yahoo.com.hk>
Tue, 12 Nov 2013 11:44:13 +0000 (19:44 +0800)
committerLinquize <linquize@yahoo.com.hk>
Tue, 12 Nov 2013 11:46:25 +0000 (19:46 +0800)
examples/blame.c
src/netops.c
src/pack-objects.c
src/push.c

index 95bce6b9ce61d860c867b082d361072ca82b0ec1..06310d540365b6c7d04ec688117ea071ed526847 100644 (file)
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
                                        rawdata+i);
                }
 
-               i = eol - rawdata + 1;
+               i = (int)(eol - rawdata + 1);
                line++;
        }
 
index d7f17b1fc5068f01a20d6765457c1514f03ad09a..592e4644977e8c2e62fbbbb172a8ad1e50018c79 100644 (file)
@@ -662,7 +662,7 @@ void gitno_connection_data_free_ptrs(gitno_connection_data *d)
 static char* unescape(char *str)
 {
        int x, y;
-       int len = strlen(str);
+       size_t len = strlen(str);
 
        for (x=y=0; str[y]; ++x, ++y) {
                if ((str[x] = str[y]) == '%') {
index 9967cab1f638371f2c7ceb04b968c851a74f8a20..2d62507f2debd61211bbaad07c0def893e329255 100644 (file)
@@ -272,7 +272,7 @@ static int write_object(git_buf *buf, git_packbuilder *pb, git_pobject *po)
        git_buf zbuf = GIT_BUF_INIT;
        git_otype type;
        unsigned char hdr[10];
-       unsigned int hdr_len;
+       size_t hdr_len;
        unsigned long size;
        void *data;
 
index 4f442c6a2a001027d7fc658ad857450c9582a888..5ad15e3fdcf8e8ceca58aa57764b8fbb5384b577 100644 (file)
@@ -618,7 +618,7 @@ on_error:
 
 static int filter_refs(git_remote *remote)
 {
-       const git_remote_head **heads;
+       git_remote_head **heads;
        size_t heads_len, i;
 
        git_vector_clear(&remote->refs);