summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-23 14:46:03 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-23 14:46:03 +0000
commit0d0e2e93e81a650898c1a5b332cef6db90f2dece (patch)
tree57e703de64009461ac39a0baaddbf2b60d92d6f4 /match.c
parent31e125226d429c2f6df010a9277bb9ebfdc2cf54 (diff)
downloadrsync-0d0e2e93e81a650898c1a5b332cef6db90f2dece.tar.gz
rsync-0d0e2e93e81a650898c1a5b332cef6db90f2dece.tar.bz2
rsync-0d0e2e93e81a650898c1a5b332cef6db90f2dece.zip
test for "long long" and %lld in configure.
Diffstat (limited to 'match.c')
-rw-r--r--match.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/match.c b/match.c
index d5ceba39..16779007 100644
--- a/match.c
+++ b/match.c
@@ -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<n;j+=CHUNK_SIZE) {
@@ -115,8 +115,10 @@ static void matched(int f,struct sum_struct *s,struct map_struct *buf,
}
- if (i != -1)
+ if (i >= 0)
last_match = offset + s->sums[i].len;
+ else
+ last_match = offset;
}