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
0a56ef12
Commit
0a56ef12
authored
Oct 19, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence some rprintf() size_t warnings.
parent
0a9fbe17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
io.c
io.c
+4
-4
No files found.
io.c
View file @
0a56ef12
...
...
@@ -471,8 +471,8 @@ static char *perform_io(size_t needed, int flags)
if
(
!
(
iobuf
.
in
.
buf
=
realloc_array
(
iobuf
.
in
.
buf
,
char
,
needed
)))
out_of_memory
(
"perform_io"
);
if
(
DEBUG_GTE
(
IO
,
4
))
{
rprintf
(
FINFO
,
"[%s] resized input buffer from %
d to %
d bytes.
\n
"
,
who_am_i
(),
iobuf
.
in
.
size
,
needed
);
rprintf
(
FINFO
,
"[%s] resized input buffer from %
ld to %l
d bytes.
\n
"
,
who_am_i
(),
(
long
)
iobuf
.
in
.
size
,
(
long
)
needed
);
}
iobuf
.
in
.
size
=
needed
;
}
...
...
@@ -482,8 +482,8 @@ static char *perform_io(size_t needed, int flags)
memmove
(
iobuf
.
in
.
buf
,
iobuf
.
in
.
buf
+
iobuf
.
in
.
pos
,
iobuf
.
in
.
len
);
if
(
DEBUG_GTE
(
IO
,
4
))
{
rprintf
(
FINFO
,
"[%s] moved %
d bytes from %d to 0 in the input buffer (size=%d, needed=%
d).
\n
"
,
who_am_i
(),
iobuf
.
in
.
len
,
iobuf
.
in
.
pos
,
iobuf
.
in
.
size
,
needed
);
"[%s] moved %
ld bytes from %ld to 0 in the input buffer (size=%ld, needed=%l
d).
\n
"
,
who_am_i
(),
(
long
)
iobuf
.
in
.
len
,
(
long
)
iobuf
.
in
.
pos
,
(
long
)
iobuf
.
in
.
size
,
(
long
)
needed
);
}
if
(
iobuf
.
raw_input_ends_before
)
iobuf
.
raw_input_ends_before
-=
iobuf
.
in
.
pos
;
...
...
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