Home GnuPG
Diffusion GnuPG 1c405499388f

libdns: Avoid using compound literals.

Description

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>

Details

Provenance
gniibeAuthored on Feb 26 2019, 1:42 AM
Parents
rGa481d17432bf: scd: PIV: Always require a PIN for signing with 9C.
Branches
Unknown
Tags
Unknown