io_end_buffering doesn't need (or use) it's fd parameter: there's only
authorMartin Pool <mbp@samba.org>
Fri, 25 Jan 2002 23:01:50 +0000 (23:01 +0000)
committerMartin Pool <mbp@samba.org>
Fri, 25 Jan 2002 23:01:50 +0000 (23:01 +0000)
one multiplexed stream.

io.c

diff --git a/io.c b/io.c
index 9c4ac19d2636c15ebb943991c23a0335a3f9f97c..6a7b679bd82ba163a460351b0296c4e6ce522b6d 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;