Fixed failing hunks.
[rsync/rsync-patches.git] / dynamic_hash.diff
index 0480785..af065c1 100644 (file)
@@ -101,13 +101,16 @@ To use this patch, run these commands for a successful build:
        char sum2[SUM_LENGTH];
        uint32 s1, s2, sum;
        int more;
-@@ -169,21 +180,21 @@ static void hash_search(int f,struct sum
+@@ -169,24 +180,21 @@ static void hash_search(int f,struct sum
                int done_csum2 = 0;
                int32 i;
  
 -              if (offset >= reset) {
 -                      sum_pos = build_hash_table(s, sum_pos);
--                      reset = sum_pos * s->blength;
+-                      if (sum_pos == s->count)
+-                              reset = len;
+-                      else
+-                              reset = sum_pos * s->blength;
 -              }
 -
                if (verbose > 4) {
@@ -132,7 +135,7 @@ To use this patch, run these commands for a successful build:
                hash_hits++;
                do {
                        int32 l;
-@@ -351,6 +362,11 @@ void match_sums(int f, struct sum_struct
+@@ -354,6 +362,11 @@ void match_sums(int f, struct sum_struct
        }
  
        if (len > 0 && s->count > 0) {