mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
siphash24: introduce siphash24_compress_typesafe() macro
To prevent copy-and-paste mistake. This also introduce in_addr_hash_func(). No functional change, just refactoring.
This commit is contained in:
6
coccinelle/siphash24.cocci
Normal file
6
coccinelle/siphash24.cocci
Normal file
@@ -0,0 +1,6 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
@@
|
||||
expression p, s;
|
||||
@@
|
||||
- siphash24_compress(&p, sizeof(p), s);
|
||||
+ siphash24_compress_typesafe(p, s);
|
Reference in New Issue
Block a user