s->sums = NULL;
if (verbose > 3) {
- rprintf(FINFO, "count=%ld n=%u rem=%u\n",
- (long)s->count, s->blength, s->remainder);
+ rprintf(FINFO, "count=%.0f n=%ld rem=%ld\n",
+ (double)s->count, (long)s->blength, (long)s->remainder);
}
if (s->count == 0)
write_int(f_out, -1);
if (verbose > 2)
rprintf(FINFO, "send_files phase=%d\n", phase);
- /* inplace resends run without a backup file */
+ /* For inplace: redo phase turns off the backup
+ * flag so that we do a regular inplace send. */
make_backups = 0;
continue;
}
}
if (st.st_size) {
- OFF_T map_size = MAX(s->blength * 3, MAX_MAP_SIZE);
+ OFF_T map_size = MAX((OFF_T)s->blength * 3, MAX_MAP_SIZE);
mbuf = map_file(fd, st.st_size, map_size, s->blength);
} else
mbuf = NULL;