mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:20:01 -04:00
Define DNS_RDATASET_INIT for static initialisation
(cherry picked from commit ddc4d1fca4)
This commit is contained in:
parent
a3bcab9105
commit
4fd22a2228
2 changed files with 8 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue