bind9/lib/samples
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
..
win32 4585. [port] win32: Set CompileAS value. [RT #42474] 2017-04-20 12:42:39 +10:00
.gitignore [master] globally rename "delve" to "delv" 2014-04-23 11:14:12 -07:00
Makefile-postinstall.in update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
Makefile.in update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
nsprobe.c Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
resolve.c Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
rootkey.sh update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
sample-async.c Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
sample-gai.c update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
sample-request.c Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00
sample-update.c Use dns_fixedname_initname() where possible 2018-04-10 13:26:23 -07:00