Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reversing the order of maybe_emit_filelist_progress() and
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
9c4ac19
..
6a7b679
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-527,8
+527,7
@@
void io_flush(void)
}
}
-/* XXX: fd is ignored, which seems a little strange. */
-void io_end_buffering(int fd)
+void io_end_buffering(void)
{
io_flush();
if (!io_multiplexing_out) {
{
io_flush();
if (!io_multiplexing_out) {
@@
-549,7
+548,7
@@
static void writefd(int fd,char *buf,size_t len)
}
while (len) {
}
while (len) {
- int n = MIN(len, IO_BUFFER_SIZE-io_buffer_count);
+ int n = MIN(
(int)
len, IO_BUFFER_SIZE-io_buffer_count);
if (n > 0) {
memcpy(io_buffer+io_buffer_count, buf, n);
buf += n;
if (n > 0) {
memcpy(io_buffer+io_buffer_count, buf, n);
buf += n;