aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dns-stuff.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-02-26 02:43:10 +0000
committerWerner Koch <[email protected]>2019-03-07 12:02:48 +0000
commit500151e6daf5fc4d6ea382b83aab3cca72b27881 (patch)
treeeb5a2de3c2cfa2340f87d49fb34a85795e8cf6fc /dirmngr/dns-stuff.c
parentlibdns: Avoid using compound literals (4). (diff)
downloadgnupg-500151e6daf5fc4d6ea382b83aab3cca72b27881.tar.gz
gnupg-500151e6daf5fc4d6ea382b83aab3cca72b27881.zip
libdns: Avoid using compound literals (5).
* dirmngr/dns.h (dns_rr_foreach): Don't use dns_rr_i_new. Call dns_rr_grep with NULL. * dirmngr/dns.c (dns_rr_grep): Support NULL for error_. -- Here we still use C99 feature of struct member initialization in dns_rr_foreach, for struct dns_rr_i. Note that in C99, it guarantees non-specified member fields are initialized by zero. So, there's no need to use dns_rr_i_new at all. Signed-off-by: NIIBE Yutaka <[email protected]> (cherry picked from commit a1ccfe2b37847cce0db2fb94a7365c9fa501eda4)
Diffstat (limited to 'dirmngr/dns-stuff.c')
0 files changed, 0 insertions, 0 deletions