Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
60af9465
Commit
60af9465
authored
Dec 08, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly cast the length values down to an uint32 so that some
compilers don't complain about the value getting smaller.
parent
ca0e8296
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flist.c
flist.c
+2
-2
No files found.
flist.c
View file @
60af9465
...
...
@@ -644,7 +644,7 @@ static struct file_struct *recv_file_entry(struct file_list *flist,
file
->
flags
|=
FLAG_HLINKED
;
#endif
file
->
modtime
=
modtime
;
file
->
len32
=
file_length
;
file
->
len32
=
(
uint32
)
file_length
;
if
(
file_length
>
0xFFFFFFFFu
&&
S_ISREG
(
mode
))
{
file
->
flags
|=
FLAG_LENGTH64
;
OPT_EXTRA
(
file
,
0
)
->
unum
=
(
uint32
)(
file_length
>>
32
);
...
...
@@ -921,7 +921,7 @@ struct file_struct *make_file(const char *fname, struct file_list *flist,
file
->
flags
=
flags
;
file
->
modtime
=
st
.
st_mtime
;
file
->
len32
=
st
.
st_size
;
file
->
len32
=
(
uint32
)
st
.
st_size
;
if
(
st
.
st_size
>
0xFFFFFFFFu
&&
S_ISREG
(
st
.
st_mode
))
{
file
->
flags
|=
FLAG_LENGTH64
;
OPT_EXTRA
(
file
,
0
)
->
unum
=
(
uint32
)(
st
.
st_size
>>
32
);
...
...
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