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
55d9e0fa
Commit
55d9e0fa
authored
Jan 24, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write_batch_csums_file: Opaque IO buffers should be void*.
parent
929e3011
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
batch.c
batch.c
+5
-6
No files found.
batch.c
View file @
55d9e0fa
...
...
@@ -354,7 +354,7 @@ void read_batch_flist_info(struct file_struct **fptr)
}
}
void
write_batch_csums_file
(
char
*
buff
,
int
bytes_to_write
)
void
write_batch_csums_file
(
void
*
buff
,
int
bytes_to_write
)
{
static
int
fdb_open
=
1
;
...
...
@@ -404,16 +404,15 @@ void write_batch_csum_info(int *flist_entry, int flist_count,
/* Write csum info to batch file */
/* FIXME: This will break if s->count is ever not exactly an int. */
write_batch_csums_file
(
(
char
*
)
flist_entry
,
sizeof
(
int
));
write_batch_csums_file
(
flist_entry
,
sizeof
(
int
));
if
(
s
)
write_batch_csums_file
(
(
char
*
)
&
s
->
count
,
sizeof
(
int
));
write_batch_csums_file
(
&
s
->
count
,
sizeof
(
int
));
else
write_batch_csums_file
(
(
char
*
)
&
int_zero
,
sizeof
(
int
));
write_batch_csums_file
(
&
int_zero
,
sizeof
(
int
));
if
(
s
)
{
for
(
i
=
0
;
i
<
s
->
count
;
i
++
)
{
write_batch_csums_file
((
char
*
)
&
s
->
sums
[
i
].
sum1
,
sizeof
(
uint32
));
write_batch_csums_file
(
&
s
->
sums
[
i
].
sum1
,
sizeof
(
uint32
));
if
((
*
flist_entry
==
flist_count
-
1
)
&&
(
i
==
s
->
count
-
1
))
{
fdb_close
=
1
;
...
...
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