In fnv_64_str(), replace u_register_t (which NetBSD doesn't have) with
Fnv32_t, since it's only going to store an 8 bit number anyway.
This commit is contained in:
parent
98576a36a5
commit
118c24bff7
|
@ -58,7 +58,7 @@ static __inline Fnv64_t
|
|||
fnv_64_str(const char *str, Fnv64_t hval)
|
||||
{
|
||||
const u_int8_t *s = (const u_int8_t *)str;
|
||||
u_register_t c; /* 32 bit on i386, 64 bit on alpha,ia64 */
|
||||
Fnv32_t c;
|
||||
|
||||
while ((c = *s++) != 0) {
|
||||
hval *= FNV_64_PRIME;
|
||||
|
|
Loading…
Reference in New Issue