Define DNS_RDATASET_INIT for static initialisation

This commit is contained in:
Mark Andrews
2023-01-13 14:30:45 +11:00
parent 4ebf27bc19
commit ddc4d1fca4
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) {
/*