diff options
author | Wayne Davison <wayned@samba.org> | 2004-07-04 08:07:23 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-07-04 08:07:23 +0000 |
commit | 066a844c4e51b1a2c6528dfd2deed283292a68b5 (patch) | |
tree | 462a3d7d37aab66a813b02e7a507dc01d6d6bdf0 /match.c | |
parent | 5e252dea4b2d310dbbb3a57337199836aff8f086 (diff) | |
download | rsync-066a844c4e51b1a2c6528dfd2deed283292a68b5.tar.gz |
Changed a "for" loop into a "do ... while" loop.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -188,7 +188,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++) { + do { unsigned int l; size_t i = targets[j].i; @@ -235,7 +235,7 @@ static void hash_search(int f,struct sum_struct *s, s2 = sum >> 16; matches++; break; - } + } while (++j < s->count && targets[j].t == t); null_tag: /* Trim off the first byte from the checksum */ |