From 458e832990de0f6e74b9964f1f629a999941390d Mon Sep 17 00:00:00 2001 From: haraldwolff Date: Fri, 19 Aug 2022 20:05:15 +0200 Subject: [PATCH] Fixed dhash() prototype --- include/hash.h | 2 +- src/hash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hash.h b/include/hash.h index b982d14..d3b62eb 100644 --- a/include/hash.h +++ b/include/hash.h @@ -16,7 +16,7 @@ static inline uint64_t ror64(uint64_t word, unsigned int shift) return (word >> shift) | (word << (64 - shift)); } -uint64_t dhash(char *data, int size); +uint64_t dhash(void *data, int size); #endif //MKSPARSE_HASH_H diff --git a/src/hash.c b/src/hash.c index ace0388..6e861c9 100644 --- a/src/hash.c +++ b/src/hash.c @@ -6,7 +6,7 @@ #include #include -uint64_t dhash(char *data, int size){ +uint64_t dhash(void *data, int size){ uint64_t *i64 = (uint64_t*)data; char *i8; uint64_t hash = 0xbeefcafe;