X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3a6a366fc5ac1f418446128de50b4f2a174399fc..0c5f37d9dbd05edc48a135eb809af0a31c8c73e3:/match.c diff --git a/match.c b/match.c index d5ceba39..dd289e1a 100644 --- a/match.c +++ b/match.c @@ -39,7 +39,7 @@ static int data_transfer; static int total_false_alarms; static int total_tag_hits; static int total_matches; -static off_t total_data_transfer; +static int64 total_data_transfer; struct target { @@ -96,7 +96,7 @@ static void matched(int f,struct sum_struct *s,struct map_struct *buf, off_t n = offset - last_match; int j; - if (verbose > 2 && i != -1) + if (verbose > 2 && i >= 0) fprintf(FERROR,"match at %d last_match=%d j=%d len=%d n=%d\n", (int)offset,(int)last_match,i,(int)s->sums[i].len,(int)n); @@ -106,7 +106,7 @@ static void matched(int f,struct sum_struct *s,struct map_struct *buf, if (n > 0) write_flush(f); - if (i != -1) + if (i >= 0) n += s->sums[i].len; for (j=0;j= 0) last_match = offset + s->sums[i].len; + else + last_match = offset; }