bind9/bin/dig
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
..
include/dig Remove idnkit-1 support from dig 2018-03-17 13:41:59 +00:00
win32 [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.1 regen master 2018-02-10 01:12:12 +00:00
dig.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
dig.docbook Remove conversion from locale to utf8 from public API 2018-03-17 13:13:47 +00:00
dig.html regen master 2018-02-10 01:12:12 +00:00
dighost.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
host.1 regen master 2017-08-30 01:12:14 +00:00
host.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
host.docbook Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
host.html regen master 2017-08-30 01:12:14 +00:00
Makefile.in Remove idnkit-1 support from dig 2018-03-17 13:41:59 +00:00
nslookup.1 regen master 2017-04-21 01:05:18 +00:00
nslookup.c Use dns_fixedname_initname() where possible 2018-04-09 12:14:16 +02:00
nslookup.docbook Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
nslookup.html regen master 2017-04-21 01:05:18 +00:00