diff --git a/coccinelle/siphash24.cocci b/coccinelle/siphash24.cocci index a9afd90aa60..c577120f7b9 100644 --- a/coccinelle/siphash24.cocci +++ b/coccinelle/siphash24.cocci @@ -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);