2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00
Files
bind/cocci/dns_name_copy.spatch
Evan Hunt f3f1cab05e clean up coccinelle patches for dns_name_copy()
no need for semantic patches to use dns_name_copynf() any longer.
2021-05-22 00:37:27 -07:00

31 lines
506 B
Plaintext

@@
expression E1, E2;
@@
- dns_name_copy(E1, E2, NULL);
+ dns_name_copy(E1, E2);
@@
expression E1, E2;
@@
- (void)dns_name_copy(E1, E2, NULL);
+ dns_name_copy(E1, E2);
@@
expression E1, E2;
@@
- return (dns_name_copy(E1, E2, NULL));
+ dns_name_copy(E1, E2);
+ return (ISC_R_SUCCESS);
// ./bin/named/query.c processing broken with this rule, fix manually
// @@
// expression V, E1, E2;
// @@
//
// - V = dns_name_copy(E1, E2, NULL);
// - RUNTIME_CHECK(V == ISC_R_SUCCESS);
// + dns_name_copy(E1, E2);