diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-06-22 16:42:37 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-06-22 16:42:37 +0300 |
commit | d046945cefc34c8caafde53e20e1a064576e587e (patch) | |
tree | f4f2d4b994b1ff93edb51a6a2c2f23854ddbb8c3 | |
parent | f7292a990c719ea379ee1f7b5dc512963d69ad8d (diff) | |
download | libgit2-d046945cefc34c8caafde53e20e1a064576e587e.tar.gz |
Fix MSVC compilation errors
-rw-r--r-- | tests-clar/refs/branches/foreach.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests-clar/refs/branches/foreach.c b/tests-clar/refs/branches/foreach.c index 6e3876e7e..51e3381f8 100644 --- a/tests-clar/refs/branches/foreach.c +++ b/tests-clar/refs/branches/foreach.c @@ -26,11 +26,12 @@ void test_refs_branches_foreach__cleanup(void) static int count_branch_list_cb(const char *branch_name, git_branch_t branch_type, void *payload) { - int *count = (int *)payload; + int *count; GIT_UNUSED(branch_type); GIT_UNUSED(branch_name); + count = (int *)payload; (*count)++; return 0; @@ -85,10 +86,11 @@ static void assert_branch_has_been_found(struct expectations *findings, const ch static int contains_branch_list_cb(const char *branch_name, git_branch_t branch_type, void *payload) { int pos = 0; + struct expectations *exp; GIT_UNUSED(branch_type); - struct expectations *exp = (struct expectations *)payload; + exp = (struct expectations *)payload; while (exp[pos].branch_name) { |