Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
430af731
Commit
430af731
authored
Jun 22, 2012
by
Scott J. Goldman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #784 from nulltoken/patch-1
Fix MSVC compilation errors
parents
f7292a99
d046945c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests-clar/refs/branches/foreach.c
+4
-2
No files found.
tests-clar/refs/branches/foreach.c
View file @
430af731
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment