Module Name:    src
Committed By:   matt
Date:           Fri Sep  5 05:46:15 UTC 2014

Modified Files:
        src/sys/sys: hash.h

Log Message:
Add explicit casts for (const uint8_t *)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/sys/hash.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/hash.h
diff -u src/sys/sys/hash.h:1.7 src/sys/sys/hash.h:1.8
--- src/sys/sys/hash.h:1.7	Sun Jul  8 01:24:08 2012
+++ src/sys/sys/hash.h	Fri Sep  5 05:46:15 2014
@@ -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, u
 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)

Reply via email to