Define DNS_RDATASET_INIT for static initialisation

(cherry picked from commit ddc4d1fca4)
This commit is contained in:
Mark Andrews 2023-01-13 14:30:45 +11:00
parent a3bcab9105
commit 4fd22a2228
2 changed files with 8 additions and 2 deletions

View file

@ -146,6 +146,14 @@ struct dns_rdataset {
/*@}*/
};
#define DNS_RDATASET_COUNT_UNDEFINED UINT32_MAX
#define DNS_RDATASET_INIT \
{ \
.magic = DNS_RDATASET_MAGIC, .link = ISC_LINK_INITIALIZER, \
.count = DNS_RDATASET_COUNT_UNDEFINED \
}
/*!
* \def DNS_RDATASETATTR_RENDERED
* Used by message.c to indicate that the rdataset was rendered.

View file

@ -46,8 +46,6 @@ dns_trust_totext(dns_trust_t trust) {
return (trustnames[trust]);
}
#define DNS_RDATASET_COUNT_UNDEFINED UINT32_MAX
void
dns_rdataset_init(dns_rdataset_t *rdataset) {
/*