libdns: Avoid using compound literals (3).
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Feb 2019 01:34:03 +0000 (10:34 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Feb 2019 01:34:03 +0000 (10:34 +0900)
commit72efb7840258808cd892b90d871ea1cc1c31d7f5
tree79d0e99b53b3310459c0e3a9ec4f16c3c42a6bc2
parent455ef62d29a112de05897139716265d07e4c6ae3
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>
dirmngr/dns.c
dirmngr/dns.h