bind9/lib/dns/tests
Michał Kępień 4df4a8e731 Use dns_fixedname_initname() where possible
Replace dns_fixedname_init() calls followed by dns_fixedname_name()
calls with calls to dns_fixedname_initname() where it is possible
without affecting current behavior and/or performance.

This patch was mostly prepared using Coccinelle and the following
semantic patch:

    @@
    expression fixedname, name;
    @@
    -	dns_fixedname_init(&fixedname);
    	...
    -	name = dns_fixedname_name(&fixedname);
    +	name = dns_fixedname_initname(&fixedname);

The resulting set of changes was then manually reviewed to exclude false
positives and apply minor tweaks.

It is likely that more occurrences of this pattern can be refactored in
an identical way.  This commit only takes care of the low-hanging fruit.
2018-04-09 12:14:16 +02:00
..
testdata final cleanup 2018-03-09 14:12:50 -08:00
acl_test.c libdns refactoring: get rid of multiple versions of dns_keytable_add, dns_iptable_addprefix and dns_iptable_addprefix 2018-04-06 08:04:41 +02:00
Atffile migrate t_dst signature test to lib/dns/tests/dst_test 2018-03-09 14:12:50 -08:00
db_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
dbdiff_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
dbiterator_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
dbversion_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
dh_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
dispatch_test.c libdns refactoring: get rid of multiple versions of dns_dispatch_createtcp and dns_dispatch_addresponse, unify dns_dispatch_gettcp and dns_dispatch_gettcp2 2018-04-06 08:04:41 +02:00
dnstap_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
dnstest.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
dnstest.h migrate t_rbt to lib/dns/tests/rbt_test 2018-03-09 14:12:49 -08:00
dst_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
dstrandom_test.c libdns refactoring: get rid of multiple versions of dns_xfrin_create, dst_key_generate, dst_lib_init and dst_context_create 2018-04-06 08:04:41 +02:00
geoip_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
gost_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
Kdh.+002+18602.key [master] add diffie-hellman key unit test 2014-10-17 15:55:37 -07:00
keytable_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
Krsa.+005+29235.key Merged rt43077 (new RSA verify unit test) 2016-08-22 14:10:21 +02:00
Kyuafile final cleanup 2018-03-09 14:12:50 -08:00
Makefile.in migrate t_dst signature test to lib/dns/tests/dst_test 2018-03-09 14:12:50 -08:00
master_test.c libdns refactoring: get rid of multiple versions of dns_master_loadfile, dns_master_loadfileinc, dns_master_dump, dns_master_dumpinc, dns_master_dumptostream, dns_master_stylecreate 2018-04-06 08:04:41 +02:00
mkraw.pl Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
name_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
nsec3_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
peer_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
private_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
rbt_serialize_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
rbt_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
rdata_test.c Add a release note about dropping support for non-dotted-quad IPv4 addresses in master files 2018-03-06 09:49:27 +01:00
rdataset_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
rdatasetstats_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
resolver_test.c migrate t_resolver to lib/dns/tests/resolver_test 2018-03-09 14:12:49 -08:00
rsa_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
time_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
tsig_test.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
update_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
zonemgr_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
zt_test.c libdns refactoring: get rid of multiple versions of dns_dt_create, dns_view_setcache, dns_zt_apply, dns_message_logfmtpacket, dns_message_logpacket, dns_ssutable_checkrules and dns_ttl_totext 2018-04-06 08:04:41 +02:00