Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add explicit casts for (const uint8_t *)
details: https://anonhg.NetBSD.org/src/rev/02413c8a5b17
branches: trunk
changeset: 332032:02413c8a5b17
user: matt <matt%NetBSD.org@localhost>
date: Fri Sep 05 05:46:15 2014 +0000
description:
Add explicit casts for (const uint8_t *)
diffstat:
sys/sys/hash.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r cd71e28cac56 -r 02413c8a5b17 sys/sys/hash.h
--- a/sys/sys/hash.h Fri Sep 05 05:45:34 2014 +0000
+++ b/sys/sys/hash.h Fri Sep 05 05:46:15 2014 +0000
@@ -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 @@
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 @@
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)
Home |
Main Index |
Thread Index |
Old Index