• Michał Kępień's avatar
    Use dns_fixedname_initname() where possible · 648db0b7
    Michał Kępień authored
    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.
    648db0b7
Name
Last commit
Last update
contrib/queryparse Loading commit data...
doc Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
RELEASE_NOTES Loading commit data...
aclocal.m4 Loading commit data...
acx_pthread.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
datafile.c Loading commit data...
datafile.h Loading commit data...
dns.c Loading commit data...
dns.h Loading commit data...
dnsperf.1 Loading commit data...
dnsperf.c Loading commit data...
install-sh Loading commit data...
log.c Loading commit data...
log.h Loading commit data...
net.c Loading commit data...
net.h Loading commit data...
opt.c Loading commit data...
opt.h Loading commit data...
os.c Loading commit data...
os.h Loading commit data...
resperf-report Loading commit data...
resperf.1 Loading commit data...
resperf.c Loading commit data...
util.h Loading commit data...
version.h Loading commit data...