]> thyrsus.com Git - comparator.git/commitdiff
Hashes are now magic cookies.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 16 Sep 2003 05:33:30 +0000 (05:33 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 16 Sep 2003 05:33:30 +0000 (05:33 +0000)
shred.h

diff --git a/shred.h b/shred.h
index 83a2f13db81b210fdcbb3660b0a8598d076935f5..527f6cea40041a06c628ade498494a088d1979ee 100644 (file)
--- a/shred.h
+++ b/shred.h
@@ -23,13 +23,14 @@ typedef u_int32_t   linenum_t;
 /* use this to hold total line count of the entire source tree set */
 typedef u_int32_t      linecount_t;
 
-#define HASHSIZE       16
+#include "hash.h"
+
 struct hash_t
 {
     linenum_t          start, end;
-    unsigned char      hash[HASHSIZE];
+    hashval_t          hash;
 };
-#define SORTHASHCMP(s, t)      memcmp((s)->hash.hash, (t)->hash.hash, HASHSIZE)
+#define SORTHASHCMP(s, t) hash_compare((s)->hash.hash, (t)->hash.hash)
 
 struct filehdr_t
 {