From dd000c9a9fad0d65eb26cd8be7b902e4ab818d3a Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Fri, 25 Jan 2013 20:48:35 +0100 Subject: [PATCH] siphash: Simplify helper function W64's signature --- ccan/siphash/siphash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccan/siphash/siphash.c b/ccan/siphash/siphash.c index 766617ed..b711b30a 100644 --- 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); } -- 2.39.2