1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

coccinelle: add a rule for in_addr_hash_func()

Follow-up for c01a5c0.
This commit is contained in:
Frantisek Sumsal 2023-12-28 18:02:26 +01:00
parent cd4b16c082
commit eddecf4f6c

View File

@ -4,3 +4,10 @@ expression p, s;
@@
- siphash24_compress(&p, sizeof(p), s);
+ siphash24_compress_typesafe(p, s);
@@
union in_addr_union p;
expression f, s;
@@
- siphash24_compress(&p, FAMILY_ADDRESS_SIZE(f), s);
+ in_addr_hash_func(&p, f, s);