summaryrefslogtreecommitdiff
path: root/src/basic/siphash24.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-17 00:56:05 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-17 00:56:05 +0100
commit4de91d7eaf765f73b9b5f91b920f0bb0a19464db (patch)
tree7e870b9fe28a0b3d56434b10be627f8cdd304cf2 /src/basic/siphash24.c
parent23e096cc60eb73f24b812e4ceba7c4c2c141e2db (diff)
siphash: fix another alignment issue
Diffstat (limited to 'src/basic/siphash24.c')
-rw-r--r--src/basic/siphash24.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/siphash24.c b/src/basic/siphash24.c
index d2e4077f8a..48ab8c23b8 100644
--- a/src/basic/siphash24.c
+++ b/src/basic/siphash24.c
@@ -53,8 +53,8 @@ void siphash24_init(struct siphash *state, const uint8_t k[16]) {
assert(state);
assert(k);
- k0 = le64toh(*(le64_t*) k);
- k1 = le64toh(*(le64_t*) (k + 8));
+ k0 = unaligned_read_le64(k);
+ k1 = unaligned_read_le64(k + 8);
/* "somepseudorandomlygeneratedbytes" */
state->v0 = 0x736f6d6570736575ULL ^ k0;