summaryrefslogtreecommitdiff
path: root/tests/revwalk
diff options
context:
space:
mode:
authorAnurag Gupta <anugupta@microsoft.com>2014-03-11 11:49:19 -0700
committerAnurag Gupta <anugupta@microsoft.com>2014-03-24 11:20:31 -0700
commit7ca1584b4771703bd9f9c3ad4335f6155b05450a (patch)
tree946dbe8319f78aedc0e61476b86a04a1b8742e78 /tests/revwalk
parent46e4d82d6f3e1630cacbd89af39ef3d2e9f20d09 (diff)
downloadlibgit2-7ca1584b4771703bd9f9c3ad4335f6155b05450a.tar.gz
Conforming to libgit2 coding style.
Diffstat (limited to 'tests/revwalk')
-rw-r--r--tests/revwalk/hidecb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/revwalk/hidecb.c b/tests/revwalk/hidecb.c
index b6747588e..4c43f613b 100644
--- a/tests/revwalk/hidecb.c
+++ b/tests/revwalk/hidecb.c
@@ -35,9 +35,7 @@ void test_revwalk_hidecb__initialize(void)
cl_git_pass(git_oid_fromstr(&_head_id, commit_head));
for (i = 0; i < commit_count; i++)
- {
cl_git_pass(git_oid_fromstr(&commit_ids[i], commit_strs[i]));
- }
}
@@ -73,7 +71,7 @@ static int hide_commit_cb(const git_oid *commit_id, void *data)
static int hide_commit_use_payload_cb(const git_oid *commit_id, void *data)
{
git_oid *hide_commit_id = data;
- if (0 == git_oid_cmp(commit_id, hide_commit_id))
+ if (git_oid_cmp(commit_id, hide_commit_id) == 0)
return 1;
else
return 0;
@@ -197,3 +195,4 @@ void test_revwalk_hidecb__test_payload(void)
git_revwalk_free(walk);
}
+