Home GnuPG
Diffusion GnuPG 72efb7840258

libdns: Avoid using compound literals (3).

Description

libdns: Avoid using compound literals (3).

* dirmngr/dns.h (dns_p_new): Remove.
* dirmngr/dns.c (dns_hosts_query): Use dns_p_init with automatic
variable.
(dns_hints_query, dns_res_glue, parse_packet, query_hosts)
(send_query, show_hints, echo_port): Likewise.

Implicit automatic allocation by compound literals is confusing
for C90 code.

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

Details

Provenance
gniibeAuthored on Feb 26 2019, 2:34 AM
Parents
rG455ef62d29a1: libdns: Avoid using compound literals (2).
Branches
Unknown
Tags
Unknown