#include "rsync.h"
extern int verbose;
-extern int remote_version;
extern int csum_length;
extern struct stats stats;
extern int io_error;
**/
-/*
- receive the checksums for a buffer
- */
+/**
+ * Receive the checksums for a buffer
+ **/
static struct sum_struct *receive_sums(int f)
{
struct sum_struct *s;
s->sums = NULL;
if (verbose > 3)
- rprintf(FINFO,"count=%d n=%d rem=%d\n",
- s->count,s->n,s->remainder);
+ rprintf(FINFO,"count=%ld n=%ld rem=%ld\n",
+ (long) s->count, (long) s->n, (long) s->remainder);
if (s->count == 0)
return(s);
i = read_int(f_in);
if (i == -1) {
- if (phase==0 && remote_version >= 13) {
+ if (phase==0) {
phase++;
csum_length = SUM_LENGTH;
write_int(f_out,-1);
rprintf(FINFO,"send_files(%d,%s)\n",i,fname);
if (dry_run) {
- if (!am_server) {
- log_transfer(file, fname+offset);
+ if (!am_server && verbose) { /* log transfer */
+ rprintf(FINFO, "%s\n", fname+offset);
}
write_int(f_out,i);
continue;
if (!read_batch)
rprintf(FINFO,"calling match_sums %s\n",fname);
- if (!am_server) {
- log_transfer(file, fname+offset);
+ if (!am_server && verbose) { /* log transfer */
+ rprintf(FINFO, "%s\n", fname+offset);
}
set_compression(fname);