libdns: Avoid using compound literals.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Feb 2019 00:42:54 +0000 (09:42 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Feb 2019 00:42:54 +0000 (09:42 +0900)
commit1c405499388fd5bed0968ab5c6c5d1b3373537b9
treee8eb7a6dd1c816c564fdfc9142e47393dd62ab60
parenta481d17432bf7cca19ca71b6aa5ccd9aee2b3baa
libdns: Avoid using compound literals.

* dirmngr/dns.c (dns_inet_pton, dns_so_tcp_keep): Use automatic
variables.
(dns_poll, dns_send_nopipe): Likewise, adding const qualifier.

--

Compound literals is a feature of C99.  Because we only use C90 plus
some limited features, in the project, it's better to avoid it.

Besides, we make sure when it's read-only.

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