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
4499c0ee
Commit
4499c0ee
authored
Jan 09, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A couple minor code improvements.
parent
0c429465
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
generator.c
generator.c
+3
-7
No files found.
generator.c
View file @
4499c0ee
...
...
@@ -78,11 +78,8 @@ static int skip_file(char *fname, struct file_struct *file, STRUCT_STAT *st)
}
}
file_checksum
(
fname
,
sum
,
st
->
st_size
);
if
(
protocol_version
<
21
)
{
return
(
memcmp
(
sum
,
file
->
sum
,
2
)
==
0
);
}
else
{
return
(
memcmp
(
sum
,
file
->
sum
,
MD4_SUM_LENGTH
)
==
0
);
}
return
memcmp
(
sum
,
file
->
sum
,
protocol_version
<
21
?
2
:
MD4_SUM_LENGTH
)
==
0
;
}
if
(
size_only
)
{
...
...
@@ -525,7 +522,6 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out)
}
void
generate_files
(
int
f
,
struct
file_list
*
flist
,
char
*
local_name
,
int
f_recv
)
{
int
i
;
...
...
@@ -580,7 +576,7 @@ void generate_files(int f,struct file_list *flist,char *local_name,int f_recv)
/* files can cycle through the system more than once
* to catch initial checksum errors */
for
(
i
=
read_int
(
f_recv
);
i
!=
-
1
;
i
=
read_int
(
f_recv
)
)
{
while
((
i
=
read_int
(
f_recv
))
!=
-
1
)
{
struct
file_struct
*
file
=
flist
->
files
[
i
];
recv_generator
(
local_name
?
local_name
:
f_name_to
(
file
,
fbuf
,
sizeof
fbuf
),
file
,
i
,
f
);
...
...
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