From: Martin Pool Date: Fri, 25 Jan 2002 23:01:50 +0000 (+0000) Subject: io_end_buffering doesn't need (or use) it's fd parameter: there's only X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/7b5c3eb05efb0d67348c92d81da599c64e0c03db io_end_buffering doesn't need (or use) it's fd parameter: there's only one multiplexed stream. --- diff --git a/io.c b/io.c index 9c4ac19d..6a7b679b 100644 --- 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;