diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-12-24 09:51:30 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-12-25 07:38:59 +0100 |
commit | c01a5c0527b7c49d4b10f5d525de060feb2b37f2 (patch) | |
tree | 9831d585e249cbcb21ccb24194e93e48dfff3aab /src/test | |
parent | resolve: don't add sockets to the graveyard on shutdown (diff) | |
download | systemd-c01a5c0527b7c49d4b10f5d525de060feb2b37f2.tar.xz systemd-c01a5c0527b7c49d4b10f5d525de060feb2b37f2.zip |
siphash24: introduce siphash24_compress_typesafe() macro
To prevent copy-and-paste mistake.
This also introduce in_addr_hash_func().
No functional change, just refactoring.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-prioq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-prioq.c b/src/test/test-prioq.c index 540863c2ff..d1b1ce9170 100644 --- a/src/test/test-prioq.c +++ b/src/test/test-prioq.c @@ -54,7 +54,7 @@ static int test_compare(const struct test *x, const struct test *y) { } static void test_hash(const struct test *x, struct siphash *state) { - siphash24_compress(&x->value, sizeof(x->value), state); + siphash24_compress_typesafe(x->value, state); } DEFINE_PRIVATE_HASH_OPS(test_hash_ops, struct test, test_hash, test_compare); |