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
d046945c
Commit
d046945c
authored
Jun 22, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC compilation errors
parent
f7292a99
Show 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 @
d046945c
...
@@ -26,11 +26,12 @@ void test_refs_branches_foreach__cleanup(void)
...
@@ -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
)
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_type
);
GIT_UNUSED
(
branch_name
);
GIT_UNUSED
(
branch_name
);
count
=
(
int
*
)
payload
;
(
*
count
)
++
;
(
*
count
)
++
;
return
0
;
return
0
;
...
@@ -85,10 +86,11 @@ static void assert_branch_has_been_found(struct expectations *findings, const ch
...
@@ -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
)
static
int
contains_branch_list_cb
(
const
char
*
branch_name
,
git_branch_t
branch_type
,
void
*
payload
)
{
{
int
pos
=
0
;
int
pos
=
0
;
struct
expectations
*
exp
;
GIT_UNUSED
(
branch_type
);
GIT_UNUSED
(
branch_type
);
struct
expectations
*
exp
=
(
struct
expectations
*
)
payload
;
exp
=
(
struct
expectations
*
)
payload
;
while
(
exp
[
pos
].
branch_name
)
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