Fixed failing hunk.
[rsync-patches.git] / dynamic_hash.diff
index 12756ca3a106a055269b82a861ba7d0caa271958..f9a41d5c8e591447543ea8a80418e009c3e87107 100644 (file)
@@ -8,9 +8,15 @@ III when copying a 65 MB file without very much matching data).
 This was updated for the latest codebase from a patch written by Shachar
 Shemesh.
 
+To use this patch, run these commands for a successful build:
+
+    patch -p1 <patches/dynamic_hash.diff
+    ./configure                                 (optional if already run)
+    make
+
 --- old/match.c
 +++ new/match.c
-@@ -37,24 +37,31 @@ static int total_matches;
+@@ -40,24 +40,31 @@ static int total_matches;
  
  extern struct stats stats;
  
@@ -49,7 +55,7 @@ Shemesh.
  
        for (i = 0; i < s->count; i++) {
                uint32 t = SUM2HASH(s->sums[i].sum1);
-@@ -162,11 +169,11 @@ static void hash_search(int f,struct sum
+@@ -165,11 +172,11 @@ static void hash_search(int f,struct sum
                                (double)offset, s2 & 0xFFFF, s1 & 0xFFFF);
                }