diff options
author | Russell Belfer <rb@github.com> | 2013-11-13 11:12:31 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-11-13 11:12:31 -0800 |
commit | 98eaf39a87164eeb284df5c0239c3a31dfb538e7 (patch) | |
tree | 98cf7cd59f4ac2b30766b50dcef67ff631b6dbd9 /src/push.c | |
parent | cfd16ca28e593d084350b497b06eac7cb7a6c240 (diff) | |
download | libgit2-98eaf39a87164eeb284df5c0239c3a31dfb538e7.tar.gz |
Fix warnings
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/push.c b/src/push.c index 5ad15e3fd..3c9d5bb35 100644 --- a/src/push.c +++ b/src/push.c @@ -618,7 +618,7 @@ on_error: static int filter_refs(git_remote *remote) { - git_remote_head **heads; + const git_remote_head **heads; size_t heads_len, i; git_vector_clear(&remote->refs); @@ -627,7 +627,7 @@ static int filter_refs(git_remote *remote) return -1; for (i = 0; i < heads_len; i++) { - if (git_vector_insert(&remote->refs, heads[i]) < 0) + if (git_vector_insert(&remote->refs, (void *)heads[i]) < 0) return -1; } |