diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-12-31 16:48:11 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-12-31 16:48:11 +0000 |
commit | 3fac9b6e93b595f91108c0f9c6b6f40d14a58618 (patch) | |
tree | 549c617d62af50a7da20909fcf3bdaa11e1ddef7 | |
parent | 964ca2eca52c17fa88426a423665eb9e7915142c (diff) | |
download | rsync-3fac9b6e93b595f91108c0f9c6b6f40d14a58618.tar.gz |
removed the read_write() call, it's not used anywhere
-rw-r--r-- | io.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -211,27 +211,6 @@ int write_sparse(int f,char *buf,int len) return len; } -int read_write(int fd_in,int fd_out,int size) -{ - static char *buf=NULL; - int bufsize = sparse_files?SPARSE_WRITE_SIZE:WRITE_SIZE; - int total=0; - - if (!buf) { - buf = (char *)malloc(bufsize); - if (!buf) out_of_memory("read_write"); - } - - while (total < size) { - int n = MIN(size-total,bufsize); - read_buf(fd_in,buf,n); - if (write_sparse(fd_out,buf,n) != n) - return total; - total += n; - } - return total; -} - static int writefd(int fd,char *buf,int len) { |