* and transmits them to the receiver. The sender process runs on the
* machine holding the source files.
**/
* and transmits them to the receiver. The sender process runs on the
* machine holding the source files.
**/
sum->count = read_int(f);
sum->blength = read_int(f);
if (protocol_version < 27) {
sum->count = read_int(f);
sum->blength = read_int(f);
if (protocol_version < 27) {
- if (verbose > 3)
- rprintf(FINFO, "count=%ld n=%ld rem=%ld\n",
- (long) s->count, (long) s->blength,
- (long) s->remainder);
+ if (verbose > 3) {
+ rprintf(FINFO, "count=%ld n=%u rem=%u\n",
+ (long)s->count, s->blength, s->remainder);
+ }
- extern int write_batch; /* dw */
- extern int read_batch; /* dw */
- int checksums_match; /* dw */
- int buff_len; /* dw */
- char buff[CHUNK_SIZE]; /* dw */
- int j; /* dw */
- int done; /* dw */
+ extern int write_batch;
+ extern int read_batch;
+ int checksums_match;
+ int buff_len;
+ char buff[CHUNK_SIZE];
+ int j;
+ int done;
strlcat(fname, "/", MAXPATHLEN);
offset = strlen(file->basedir)+1;
}
strlcat(fname, "/", MAXPATHLEN);
offset = strlen(file->basedir)+1;
}
if (verbose > 2)
rprintf(FINFO, "send_files(%d, %s)\n", i, fname);
if (verbose > 2)
rprintf(FINFO, "send_files(%d, %s)\n", i, fname);
} else {
io_error |= IOERR_GENERAL;
rprintf(FERROR, "send_files failed to open %s: %s\n",
} else {
io_error |= IOERR_GENERAL;
rprintf(FERROR, "send_files failed to open %s: %s\n",
/* read checksums originally computed on sender side */
read_batch_csum_info(i, s, &checksums_match);
if (checksums_match) {
/* read checksums originally computed on sender side */
read_batch_csum_info(i, s, &checksums_match);
if (checksums_match) {
if (j != i) { /* if flist index entries don't match*/
rprintf(FINFO, "index mismatch in send_files\n");
rprintf(FINFO, "read index = %d flist ndx = %d\n", j, i);
if (j != i) { /* if flist index entries don't match*/
rprintf(FINFO, "index mismatch in send_files\n");
rprintf(FINFO, "read index = %d flist ndx = %d\n", j, i);