From c6a9b7abea48078aaa9e2159a89272741b0b395c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 5 Oct 2017 20:28:40 +0000 Subject: Better *FLAGS management --- src/include/s6-dns/s6dns-engine.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/s6-dns/s6dns-engine.h b/src/include/s6-dns/s6dns-engine.h index bcb1a46..13cfe3a 100644 --- a/src/include/s6-dns/s6dns-engine.h +++ b/src/include/s6-dns/s6dns-engine.h @@ -29,7 +29,7 @@ struct s6dns_debughook_s s6dns_debughook_func_t_ref post_send ; void *external ; } ; -#define S6DNS_DEBUGHOOK_ZERO { 0, 0, 0, 0 } +#define S6DNS_DEBUGHOOK_ZERO { .post_recv = 0, .pre_send = 0, .post_send = 0, .external = 0 } extern s6dns_debughook_t const s6dns_debughook_zero ; @@ -56,7 +56,8 @@ struct s6dns_engine_s unsigned int flagwriting : 1 ; } ; -#define S6DNS_ENGINE_ZERO { \ +#define S6DNS_ENGINE_ZERO \ +{ \ .sa = STRALLOC_ZERO, \ .deadline = TAIN_ZERO, \ .localdeadline = TAIN_ZERO, \ -- cgit v1.3.1