From 5da27df52ff5cb626f95607fe01856d5e63cb00b Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 5 Sep 2014 05:46:15 +0000 Subject: [PATCH] Add explicit casts for (const uint8_t *) --- sys/sys/hash.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sys/hash.h b/sys/sys/hash.h index bffbd47b676a..75312d78a75f 100644 --- a/sys/sys/hash.h +++ b/sys/sys/hash.h @@ -1,4 +1,4 @@ -/* $NetBSD: hash.h,v 1.7 2012/07/08 01:24:08 rmind Exp $ */ +/* $NetBSD: hash.h,v 1.8 2014/09/05 05:46:15 matt Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -51,7 +51,7 @@ static __inline uint32_t hash32_buf(const void *bf, size_t len, uint32_t hash) { - const uint8_t *s = bf; + const uint8_t *s = (const uint8_t *)bf; while (len-- != 0) /* "nemesi": k=257, r=r*257 */ hash = hash * 257 + *s++; @@ -72,7 +72,7 @@ hash32_buf(const void *bf, size_t len, uint32_t hash) static __inline uint32_t hash32_str(const void *bf, uint32_t hash) { - const uint8_t *s = bf; + const uint8_t *s = (const uint8_t *)bf; uint8_t c; while ((c = *s++) != 0) @@ -90,7 +90,7 @@ hash32_str(const void *bf, uint32_t hash) static __inline uint32_t hash32_strn(const void *bf, size_t len, uint32_t hash) { - const uint8_t *s = bf; + const uint8_t *s = (const uint8_t *)bf; uint8_t c; while ((c = *s++) != 0 && len-- != 0)