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
c5d8745f
Commit
c5d8745f
authored
Jun 06, 2011
by
Romain Geissler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tree: Some more size_t to unsigned int type change.
parent
f11e0797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/tree.c
+5
-5
No files found.
src/tree.c
View file @
c5d8745f
...
...
@@ -288,7 +288,7 @@ static void sort_entries(git_treebuilder *bld)
int
git_treebuilder_create
(
git_treebuilder
**
builder_p
,
const
git_tree
*
source
)
{
git_treebuilder
*
bld
;
size_
t
i
,
source_entries
=
DEFAULT_TREE_SIZE
;
unsigned
in
t
i
,
source_entries
=
DEFAULT_TREE_SIZE
;
assert
(
builder_p
);
...
...
@@ -409,7 +409,7 @@ int git_treebuilder_remove(git_treebuilder *bld, const char *filename)
int
git_treebuilder_write
(
git_oid
*
oid
,
git_repository
*
repo
,
git_treebuilder
*
bld
)
{
size_
t
i
,
size
=
0
;
unsigned
in
t
i
,
size
=
0
;
char
filemode
[
MAX_FILEMODE_BYTES
+
1
+
1
];
git_odb_stream
*
stream
;
int
error
;
...
...
@@ -443,7 +443,7 @@ int git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *b
stream
->
write
(
stream
,
filemode
,
strlen
(
filemode
));
stream
->
write
(
stream
,
entry
->
filename
,
entry
->
filename_len
+
1
);
stream
->
write
(
stream
,
(
char
*
)
entry
->
oid
.
id
,
GIT_OID_RAWSZ
);
}
}
error
=
stream
->
finalize_write
(
oid
,
stream
);
stream
->
free
(
stream
);
...
...
@@ -453,7 +453,7 @@ int git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *b
void
git_treebuilder_filter
(
git_treebuilder
*
bld
,
int
(
*
filter
)(
const
git_tree_entry
*
,
void
*
),
void
*
payload
)
{
size_
t
i
;
unsigned
in
t
i
;
assert
(
bld
&&
filter
);
...
...
@@ -466,7 +466,7 @@ void git_treebuilder_filter(git_treebuilder *bld, int (*filter)(const git_tree_e
void
git_treebuilder_clear
(
git_treebuilder
*
bld
)
{
size_
t
i
;
unsigned
in
t
i
;
assert
(
bld
);
for
(
i
=
0
;
i
<
bld
->
entries
.
length
;
++
i
)
{
...
...
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