Home GnuPG
Diffusion GnuPG f0de4fc99076

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.

(cherry picked from commit 72efb7840258808cd892b90d871ea1cc1c31d7f5)

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

Details

Provenance
gniibeAuthored on Feb 26 2019, 2:34 AM
wernerCommitted on Mar 7 2019, 1:02 PM
Parents
rGff7d01fc6d39: libdns: Avoid using compound literals (2).
Branches
Unknown
Tags
Unknown