summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-25 23:07:33 +0000
committerMartin Pool <mbp@samba.org>2002-01-25 23:07:33 +0000
commita261989cda6f671352e6323f11d2d98e923c622e (patch)
treeb53a6d9d6b0cc12baab44a7e74395e9808266b40 /match.c
parent7b5c3eb05efb0d67348c92d81da599c64e0c03db (diff)
downloadrsync-a261989cda6f671352e6323f11d2d98e923c622e.tar.gz
More signedness fixes; should be harmless.
Diffstat (limited to 'match.c')
-rw-r--r--match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/match.c b/match.c
index 7b0f6017..adc298e7 100644
--- a/match.c
+++ b/match.c
@@ -71,7 +71,7 @@ static void build_hash_table(struct sum_struct *s)
if (!tag_table || !targets)
out_of_memory("build_hash_table");
- for (i=0;i<s->count;i++) {
+ for (i=0;i<(int) s->count;i++) {
targets[i].i = i;
targets[i].t = gettag(s->sums[i].sum1);
}
@@ -175,7 +175,7 @@ static void hash_search(int f,struct sum_struct *s,
sum = (s1 & 0xffff) | (s2 << 16);
tag_hits++;
- for (; j<s->count && targets[j].t == t; j++) {
+ for (; j < (int) s->count && targets[j].t == t; j++) {
int l, i = targets[j].i;
if (sum != s->sums[i].sum1) continue;
@@ -201,7 +201,7 @@ static void hash_search(int f,struct sum_struct *s,
/* we've found a match, but now check to see
if last_i can hint at a better match */
- for (j++; j<s->count && targets[j].t == t; j++) {
+ for (j++; j < (int) s->count && targets[j].t == t; j++) {
int i2 = targets[j].i;
if (i2 == last_i + 1) {
if (sum != s->sums[i2].sum1) break;