aboutsummaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-02-28 01:00:03 +0000
committerWayne Davison <wayned@samba.org>2006-02-28 01:00:03 +0000
commitfbbe9a016df450797a787dee2849e7d9d9238eed (patch)
tree90cfa13fddfc69ba671aac9d6c4c0845a27ae29a /match.c
parentc64ca7ef58bf3b2eb41cd0d1cd809fe934be4d8a (diff)
downloadandroid_external_rsync-fbbe9a016df450797a787dee2849e7d9d9238eed.tar.gz
android_external_rsync-fbbe9a016df450797a787dee2849e7d9d9238eed.tar.bz2
android_external_rsync-fbbe9a016df450797a787dee2849e7d9d9238eed.zip
Changed the name of GETTAG() to SUM2HASH().
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 300e2ba0..89ba7304 100644
--- a/match.c
+++ b/match.c
@@ -40,7 +40,7 @@ extern struct stats stats;
static uint32 tablesize;
static int32 *sum_table;
-#define GETTAG(sum) ((sum)%tablesize)
+#define SUM2HASH(sum) ((sum)%tablesize)
static void build_hash_table(struct sum_struct *s)
{
@@ -63,7 +63,7 @@ static void build_hash_table(struct sum_struct *s)
memset(sum_table, 0xFF, tablesize * sizeof sum_table[0]);
for (i = 0; i < s->count; i++) {
- uint32 t = GETTAG(s->sums[i].sum1);
+ uint32 t = SUM2HASH(s->sums[i].sum1);
s->sums[i].chain = sum_table[t];
sum_table[t] = i;
}
@@ -166,7 +166,7 @@ static void hash_search(int f,struct sum_struct *s,
if (verbose > 4)
rprintf(FINFO,"offset=%.0f sum=%08x\n",(double)offset,sum);
- i = sum_table[GETTAG(sum)];
+ i = sum_table[SUM2HASH(sum)];
if (i < 0)
goto null_hash;