summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-10-05 20:28:40 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-10-05 20:28:40 +0000
commitc6a9b7abea48078aaa9e2159a89272741b0b395c (patch)
tree810c7bfb4c36c0965546bfb05783e67bd8a3584a /src/include
parent123c9ff1dff1f28046f1a73503b61c29051cd7f6 (diff)
downloads6-dns-c6a9b7abea48078aaa9e2159a89272741b0b395c.tar.xz
Better *FLAGS management
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6-dns/s6dns-engine.h5
1 files changed, 3 insertions, 2 deletions
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, \