Define DNS_RDATASET_INIT for static initialisation
This commit is contained in:
@@ -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) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user