diff options
| author | NIIBE Yutaka <[email protected]> | 2019-02-26 00:42:54 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2019-02-26 00:42:54 +0000 |
| commit | 1c405499388fd5bed0968ab5c6c5d1b3373537b9 (patch) | |
| tree | e8eb7a6dd1c816c564fdfc9142e47393dd62ab60 /dirmngr/dns.h | |
| parent | scd: PIV: Always require a PIN for signing with 9C. (diff) | |
| download | gnupg-1c405499388fd5bed0968ab5c6c5d1b3373537b9.tar.gz gnupg-1c405499388fd5bed0968ab5c6c5d1b3373537b9.zip | |
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 <[email protected]>
Diffstat (limited to 'dirmngr/dns.h')
0 files changed, 0 insertions, 0 deletions
