Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved the orig_umask variable's definition into main.c since it
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
0948416
..
b69ae00
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-1011,7
+1011,7
@@
static void sleep_for_bwlimit(int bytes_written)
#define ONE_SEC 1000000L /* # of microseconds in a second */
#define ONE_SEC 1000000L /* # of microseconds in a second */
- if (!bwlimit)
+ if (!bwlimit
_writemax
)
return;
total_written += bytes_written;
return;
total_written += bytes_written;
@@
-1091,7
+1091,7
@@
static void writefd_unbuffered(int fd,char *buf,size_t len)
continue;
n = len - total;
continue;
n = len - total;
- if (bwlimit && n > bwlimit_writemax)
+ if (bwlimit
_writemax
&& n > bwlimit_writemax)
n = bwlimit_writemax;
cnt = write(fd, buf + total, n);
n = bwlimit_writemax;
cnt = write(fd, buf + total, n);