]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coccinelle: add a rule for in_addr_hash_func() 30689/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 28 Dec 2023 17:02:26 +0000 (18:02 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 2 Jan 2024 18:12:05 +0000 (19:12 +0100)
Follow-up for c01a5c0.

coccinelle/siphash24.cocci

index a9afd90aa60b89dbc842744c601139dffdcdae53..c577120f7b9f0e0288696881fce413e4cf100d05 100644 (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);