X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fhashfunc.h;h=a9fb1a315df182169ef734644e8ab408de5f352a;hb=88714d18176f047eb4d298bb3f22520217671513;hp=5f40c3d6783eb6c7346451a813170ca442347599;hpb=18fcca1138ad1b480854cb1e64fa10a84660dcba;p=libucw.git diff --git a/lib/hashfunc.h b/lib/hashfunc.h index 5f40c3d6..a9fb1a31 100644 --- a/lib/hashfunc.h +++ b/lib/hashfunc.h @@ -14,8 +14,8 @@ #include "lib/lib.h" /* The following functions need str to be aligned to uns. */ -uns str_len_aligned(const byte *str) PURE; -uns hash_string_aligned(const byte *str) PURE; +uns str_len_aligned(const char *str) PURE; +uns hash_string_aligned(const char *str) PURE; uns hash_block_aligned(const byte *str, uns len) PURE; #ifdef CPU_ALLOW_UNALIGNED @@ -23,12 +23,12 @@ uns hash_block_aligned(const byte *str, uns len) PURE; #define hash_string(str) hash_string_aligned(str) #define hash_block(str, len) hash_block_aligned(str, len) #else -uns str_len(const byte *str) PURE; -uns hash_string(const byte *str) PURE; +uns str_len(const char *str) PURE; +uns hash_string(const char *str) PURE; uns hash_block(const byte *str, uns len) PURE; #endif -uns hash_string_nocase(const byte *str) PURE; +uns hash_string_nocase(const char *str) PURE; /* * We hash integers by multiplying by a reasonably large prime with