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
1d008781
Commit
1d008781
authored
Apr 23, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conversion warning in MSVC
parent
6b290755
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/odb_pack.c
+4
-4
No files found.
src/odb_pack.c
View file @
1d008781
...
...
@@ -113,7 +113,7 @@ struct pack_backend {
git_vector
packs
;
struct
pack_file
*
last_found
;
char
*
pack_folder
;
off
_t
pack_folder_size
;
size
_t
pack_folder_size
;
size_t
window_size
;
/* needs default value */
...
...
@@ -874,7 +874,7 @@ static int packfile_refresh_all(struct pack_backend *backend)
if
(
gitfo_stat
(
backend
->
pack_folder
,
&
st
)
<
0
||
!
S_ISDIR
(
st
.
st_mode
))
return
GIT_ENOTFOUND
;
if
(
st
.
st_size
!=
backend
->
pack_folder_size
)
{
if
(
(
size_t
)
st
.
st_size
!=
backend
->
pack_folder_size
)
{
char
path
[
GIT_PATH_MAX
];
strcpy
(
path
,
backend
->
pack_folder
);
...
...
@@ -884,7 +884,7 @@ static int packfile_refresh_all(struct pack_backend *backend)
return
error
;
git_vector_sort
(
&
backend
->
packs
);
backend
->
pack_folder_size
=
st
.
st_size
;
backend
->
pack_folder_size
=
(
size_t
)
st
.
st_size
;
}
return
GIT_SUCCESS
;
...
...
@@ -1408,7 +1408,7 @@ int git_odb_backend_pack(git_odb_backend **backend_out, const char *objects_dir)
git__joinpath
(
path
,
objects_dir
,
"pack"
);
if
(
gitfo_isdir
(
path
)
==
GIT_SUCCESS
)
{
backend
->
pack_folder
=
git__strdup
(
path
);
backend
->
pack_folder_size
=
-
1
;
backend
->
pack_folder_size
=
0
;
if
(
backend
->
pack_folder
==
NULL
)
{
free
(
backend
);
...
...
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