Skip to content

Commit

Permalink
Merge pull request #784 from nulltoken/patch-1
Browse files Browse the repository at this point in the history
Fix MSVC compilation errors
  • Loading branch information
Scott J. Goldman committed Jun 22, 2012
2 parents f7292a9 + d046945 commit 430af73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests-clar/refs/branches/foreach.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 430af73

Please sign in to comment.