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
99baacfb
Commit
99baacfb
authored
Mar 21, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC warnings
parent
72a3fe42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
src/cache.c
+1
-1
src/commit.c
+3
-3
tests/t13-threads.c
+0
-7
No files found.
src/cache.c
View file @
99baacfb
...
@@ -78,7 +78,7 @@ void *git_cache_get(git_cache *cache, const git_oid *oid)
...
@@ -78,7 +78,7 @@ void *git_cache_get(git_cache *cache, const git_oid *oid)
{
{
const
uint32_t
*
hash
;
const
uint32_t
*
hash
;
size_t
i
,
pos
,
found
=
0
;
size_t
i
,
pos
,
found
=
0
;
cache_node
*
node
;
cache_node
*
node
=
NULL
;
hash
=
(
const
uint32_t
*
)
oid
->
id
;
hash
=
(
const
uint32_t
*
)
oid
->
id
;
...
...
src/commit.c
View file @
99baacfb
...
@@ -101,7 +101,7 @@ int git_commit_create_v(
...
@@ -101,7 +101,7 @@ int git_commit_create_v(
oid
,
repo
,
update_ref
,
author
,
committer
,
message
,
oid
,
repo
,
update_ref
,
author
,
committer
,
message
,
tree_oid
,
parent_count
,
oids
);
tree_oid
,
parent_count
,
oids
);
free
(
oids
);
free
(
(
void
*
)
oids
);
return
error
;
return
error
;
}
}
...
@@ -132,7 +132,7 @@ int git_commit_create_ov(
...
@@ -132,7 +132,7 @@ int git_commit_create_ov(
git_object_id
((
git_object
*
)
tree
),
git_object_id
((
git_object
*
)
tree
),
parent_count
,
oids
);
parent_count
,
oids
);
free
(
oids
);
free
(
(
void
*
)
oids
);
return
error
;
return
error
;
}
}
...
@@ -160,7 +160,7 @@ int git_commit_create_o(
...
@@ -160,7 +160,7 @@ int git_commit_create_o(
git_object_id
((
git_object
*
)
tree
),
git_object_id
((
git_object
*
)
tree
),
parent_count
,
oids
);
parent_count
,
oids
);
free
(
oids
);
free
(
(
void
*
)
oids
);
return
error
;
return
error
;
}
}
...
...
tests/t13-threads.c
View file @
99baacfb
...
@@ -32,13 +32,6 @@ typedef struct {
...
@@ -32,13 +32,6 @@ typedef struct {
unsigned
int
__dummy
;
unsigned
int
__dummy
;
}
ttest_obj
;
}
ttest_obj
;
void
*
cache0_thread
(
void
*
data
)
{
git_cache
*
cache
=
(
git_cache
*
)
data
;
unsigned
int
num
;
}
BEGIN_TEST
(
cache0
,
"run several threads polling the cache at the same time"
)
BEGIN_TEST
(
cache0
,
"run several threads polling the cache at the same time"
)
END_TEST
END_TEST
...
...
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