projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6b3ef7
)
siphash: Simplify helper function W64's signature
author
Ulrik Sverdrup
<ulrik.sverdrup@gmail.com>
Fri, 25 Jan 2013 19:48:35 +0000
(20:48 +0100)
committer
Ulrik Sverdrup
<ulrik.sverdrup@gmail.com>
Fri, 25 Jan 2013 19:48:35 +0000
(20:48 +0100)
ccan/siphash/siphash.c
patch
|
blob
|
history
diff --git
a/ccan/siphash/siphash.c
b/ccan/siphash/siphash.c
index 766617ed9c4ce1761cd97715942757cb422f7fa3..b711b30a1231eb97f6378ef27210aaee62a912b0 100644
(file)
--- a/
ccan/siphash/siphash.c
+++ b/
ccan/siphash/siphash.c
@@
-26,10
+26,10
@@
enum sip_index { A=0, B=2, C=1, D=3, E=4 };
} while(0)
-static inline u64 W64(const
void *p, size_t I
)
+static inline u64 W64(const
unsigned char *p, size_t j
)
{
uint64_t x;
- memcpy(&x,
(char *)p + I
*sizeof(x), sizeof(x));
+ memcpy(&x,
p + j
*sizeof(x), sizeof(x));
return le64_to_cpu(x);
}