libdns: Avoid using compound literals (6).
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Feb 2019 02:55:32 +0000 (11:55 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Feb 2019 02:55:32 +0000 (11:55 +0900)
commit6501e59d3685bb58753c9caea729a4b0eca3942a
tree0c70a83e8f4345f5c25eb5d3993df9337c9b0016
parenta1ccfe2b37847cce0db2fb94a7365c9fa501eda4
libdns: Avoid using compound literals (6).

* dirmngr/dns.h (dns_rr_i_new): Remove.
(dns_rr_i_init): Remove unused second argument.
* dirmngr/dns.c (dns_p_dump, dns_hints_query, print_packet)
(parse_packet): Use automatic variable for struct dns_rr_i.
(dns_d_cname): No need to call dns_rr_i_init after memset 0.
(dns_rr_i_init): Remove unused second argument.  Return nothing.
* dirmngr/dns-stuff.c (resolve_addr_libdns, get_dns_cert_libdns)
(getsrv_libdns): Follow the change of dns_rr_i_init.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
dirmngr/dns-stuff.c
dirmngr/dns.c
dirmngr/dns.h