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:
0feec72
)
io_end_buffering doesn't need (or use) it's fd parameter: there's only
author
Martin Pool
<mbp@samba.org>
Fri, 25 Jan 2002 23:01:50 +0000
(23:01 +0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 25 Jan 2002 23:01:50 +0000
(23:01 +0000)
one multiplexed stream.
io.c
patch
|
blob
|
blame
|
history
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) {
@@
-549,7
+548,7
@@
static void writefd(int fd,char *buf,size_t 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;