Skip to content
Browse files

Fix libgit2 compile warnings

  • Loading branch information...
1 parent 3c4e1a5 commit 493d5b7be15e05dd8ceffbc33c97034cbe510228 @vmg vmg committed Aug 9, 2012
Showing with 3 additions and 8 deletions.
  1. +1 −6 ext/rugged/rugged_reference.c
  2. +1 −1 ext/rugged/rugged_tree.c
  3. +1 −1 vendor/libgit2
View
7 ext/rugged/rugged_reference.c
@@ -456,12 +456,7 @@ static VALUE reflog_entry_new(const git_reflog_entry *entry)
rugged_signature_new(git_reflog_entry_committer(entry), NULL)
);
- if (git_reflog_entry_msg(entry) == NULL) {
- rb_hash_aset(rb_entry,
- CSTR2SYM("message"),
- Qnil
- );
- } else {
+ if (git_reflog_entry_msg(entry) != NULL) {
rb_hash_aset(rb_entry,
CSTR2SYM("message"),
rugged_str_new2(git_reflog_entry_msg(entry), NULL)
View
2 ext/rugged/rugged_tree.c
@@ -155,7 +155,7 @@ static VALUE rb_git_tree_each(VALUE self)
return Qnil;
}
-static int rugged__treewalk_cb(const char *root, git_tree_entry *entry, void *proc)
+static int rugged__treewalk_cb(const char *root, const git_tree_entry *entry, void *proc)
{
rb_funcall((VALUE)proc, rb_intern("call"), 2,
rugged_str_new2(root, NULL),
2 vendor/libgit2
@@ -1 +1 @@
-Subproject commit d7b3dab958dc004d7ed1d338d04c67759d578748
+Subproject commit c07d9c95f2ee277e12dc379c3054411cd3d2958e

0 comments on commit 493d5b7

Please sign in to comment.
Something went wrong with that request. Please try again.