Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a9fbe1
)
Silence some rprintf() size_t warnings.
author
Wayne Davison
<wayned@samba.org>
Mon, 19 Oct 2009 15:06:21 +0000
(08:06 -0700)
committer
Wayne Davison
<wayned@samba.org>
Mon, 19 Oct 2009 15:06:21 +0000
(08:06 -0700)
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
610a802
..
b0f0204
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-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)) {
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;
}
}
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,
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;
}
if (iobuf.raw_input_ends_before)
iobuf.raw_input_ends_before -= iobuf.in.pos;