From 41b4667668fe0c41ab71c18b756e2150832f3300 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 16 Sep 2003 05:33:30 +0000 Subject: [PATCH] Hashes are now magic cookies. --- shred.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shred.h b/shred.h index 83a2f13..527f6ce 100644 --- 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 { -- 2.43.0