From f6751e3b0e988f21a41f276ffe683dc114afb57f Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 8 Jun 2000 20:49:46 +0000 Subject: [PATCH] use a dns_dbtype_* identifier when assigning to a dns_dbttype_t, not an isc_boolean_t --- bin/tests/db/t_db.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/tests/db/t_db.c b/bin/tests/db/t_db.c index ebe88a7861..8d937636ad 100644 --- a/bin/tests/db/t_db.c +++ b/bin/tests/db/t_db.c @@ -48,9 +48,9 @@ t_create(const char *db_type, const char *origin, const char *class, dns_rdataclass_t rdataclass; - dbtype = ISC_FALSE; + dbtype = dns_dbtype_zone; if (strcasecmp(model, "cache") == 0) - dbtype = ISC_TRUE; + dbtype = dns_dbtype_cache; dns_fixedname_init(&dns_origin); len = strlen(origin); @@ -391,7 +391,7 @@ t2(void) { t_assert("dns_db_iscache", 2, T_REQUIRED, a2); result = test_dns_db_zc_x("dns_db_iscache_1_data", - ISC_TRUE, dns_db_iscache, ISC_TRUE); + dns_dbtype_cache, dns_db_iscache, ISC_TRUE); t_result(result); } @@ -407,7 +407,7 @@ t3(void) { t_assert("dns_db_iscache", 3, T_REQUIRED, a3); result = test_dns_db_zc_x("dns_db_iscache_2_data", - ISC_FALSE, dns_db_iscache, ISC_FALSE); + dns_dbtype_zone, dns_db_iscache, ISC_FALSE); t_result(result); } @@ -423,7 +423,7 @@ t4(void) { t_assert("dns_db_iszone", 4, T_REQUIRED, a4); result = test_dns_db_zc_x("dns_db_iszone_1_data", - ISC_FALSE, dns_db_iszone, ISC_TRUE); + dns_dbtype_zone, dns_db_iszone, ISC_TRUE); t_result(result); } @@ -438,7 +438,7 @@ t5(void) { t_assert("dns_db_iszone", 5, T_REQUIRED, a5); result = test_dns_db_zc_x("dns_db_iszone_2_data", - ISC_TRUE, dns_db_iszone, ISC_FALSE); + dns_dbtype_cache, dns_db_iszone, ISC_FALSE); t_result(result); }