Home GnuPG
Diffusion GnuPG f3af1707690b

libdns: Avoid using compound literals (6).

Description

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.

(cherry picked from commit 6501e59d3685bb58753c9caea729a4b0eca3942a)

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Feb 26 2019, 3:55 AM
wernerCommitted on Mar 7 2019, 1:02 PM
Parents
rG500151e6daf5: libdns: Avoid using compound literals (5).
Branches
Unknown
Tags
Unknown