From: Matthijs Mekking Date: Tue, 13 Feb 2024 15:09:44 +0000 (+0100) Subject: Add coccinelle rule to favor DNS_SIGTYPE X-Git-Tag: v9.19.22~40^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af5679960eb90241e28ada542601c9b1dfa5fe56;p=thirdparty%2Fbind9.git Add coccinelle rule to favor DNS_SIGTYPE This should error if DNS_TYPEPAIR_VALUE(dns_rdatatype_rrsig, type) is used. --- diff --git a/cocci/DNS_TYPEPAIR_VALUE.spatch b/cocci/DNS_TYPEPAIR_VALUE.spatch new file mode 100644 index 00000000000..4c512943a1e --- /dev/null +++ b/cocci/DNS_TYPEPAIR_VALUE.spatch @@ -0,0 +1,7 @@ +@@ +identifier RRSIG = dns_rdatatype_rrsig; +expression T; +@@ + +- DNS_TYPEPAIR_VALUE(RRSIG, T) ++ DNS_SIGTYPE(T)