projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c84076
)
Add cast to silence new warning in GCC 4.0.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 21 Dec 2005 22:31:36 +0000
(22:31 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 21 Dec 2005 22:31:36 +0000
(22:31 +0000)
src/lib/kernel/hash.c
patch
|
blob
|
history
diff --git
a/src/lib/kernel/hash.c
b/src/lib/kernel/hash.c
index 93813c08afc694030ee056ac760f43c942030038..3eda885383b7d396670b5a6f78dfc9e72af8ddf2 100644
(file)
--- a/
src/lib/kernel/hash.c
+++ b/
src/lib/kernel/hash.c
@@
-210,7
+210,7
@@
hash_bytes (const void *buf_, size_t size)
unsigned
hash_string (const char *s_)
{
- const unsigned char *s = s_;
+ const unsigned char *s =
(const unsigned char *)
s_;
unsigned hash;
ASSERT (s != NULL);