mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break.
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: soa_6.c,v 1.25 1999/11/02 13:07:53 marka Exp $ */
|
||||
/* $Id: soa_6.c,v 1.26 1999/12/23 00:08:59 explorer Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_SOA_6_C
|
||||
#define RDATA_GENERIC_SOA_6_C
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
fromtext_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
@@ -64,7 +64,7 @@ static char *soa_fieldnames[5] = {
|
||||
"serial", "refresh", "retry", "expire", "minimum"
|
||||
} ;
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
@@ -133,7 +133,7 @@ totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
@@ -172,7 +172,7 @@ fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
@@ -251,7 +251,7 @@ compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
return (compare_region(®ion1, ®ion2));
|
||||
}
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
@@ -265,12 +265,12 @@ fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
isc_region_t region;
|
||||
dns_rdata_soa_t *soa = target;
|
||||
dns_name_t name;
|
||||
dns_result_t result;
|
||||
isc_result_t result;
|
||||
|
||||
REQUIRE(rdata->type == 6);
|
||||
REQUIRE(target != NULL);
|
||||
@@ -322,7 +322,7 @@ freestruct_soa(void *source) {
|
||||
/* No action required */
|
||||
}
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
additionaldata_soa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||
void *arg)
|
||||
{
|
||||
@@ -334,11 +334,11 @@ additionaldata_soa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static inline dns_result_t
|
||||
static inline isc_result_t
|
||||
digest_soa(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg) {
|
||||
isc_region_t r;
|
||||
dns_name_t name;
|
||||
dns_result_t result;
|
||||
isc_result_t result;
|
||||
|
||||
REQUIRE(rdata->type == 6);
|
||||
|
||||
|
Reference in New Issue
Block a user