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:
964ca2e
)
removed the read_write() call, it's not used anywhere
author
Andrew Tridgell
<tridge@samba.org>
Wed, 31 Dec 1997 16:48:11 +0000
(16:48 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 31 Dec 1997 16:48:11 +0000
(16:48 +0000)
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
0e75f6b
..
e8e1ceb
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-211,27
+211,6
@@
int write_sparse(int f,char *buf,int len)
return 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)
{
static int writefd(int fd,char *buf,int len)
{