bind9/bin
Michał Kępień ecea678dac 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.

(cherry picked from commit 4df4a8e731)
(cherry picked from commit 0041aeb751)
2018-04-10 13:26:23 -07:00
..
check Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
confgen update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
delv Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
dig Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
dnssec Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
named Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
nsupdate Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
pkcs11 update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
python update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
rndc update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
tests Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
tools Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
win32/BINDInstall update file headers 2018-03-15 18:38:48 -07:00
Makefile.in update file headers to remove copyright years 2018-03-14 16:40:20 -07:00