2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00
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
..
api
2018-01-24 10:22:59 -08:00
2018-03-15 18:33:13 -07:00
2015-10-02 12:32:42 -07:00
2018-03-15 18:33:13 -07:00
2018-03-15 18:33:13 -07:00
2018-03-15 18:33:13 -07:00
2018-03-15 18:33:13 -07:00
2017-12-29 01:44:18 +00:00
2018-03-15 18:33:13 -07:00
2018-03-06 09:49:30 +01:00