mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
"while (1) {} -> do {} while (1);" to suppress a warning
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.c,v 1.479 2008/04/07 05:32:52 marka Exp $ */
|
/* $Id: zone.c,v 1.480 2008/04/09 04:29:16 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -3779,7 +3779,7 @@ next_active(dns_db_t *db, dns_dbversion_t *version, dns_name_t *oldname,
|
|||||||
|
|
||||||
CHECK(dns_db_createiterator(db, ISC_FALSE, &dbit));
|
CHECK(dns_db_createiterator(db, ISC_FALSE, &dbit));
|
||||||
CHECK(dns_dbiterator_seek(dbit, oldname));
|
CHECK(dns_dbiterator_seek(dbit, oldname));
|
||||||
while (1) {
|
do {
|
||||||
result = dns_dbiterator_next(dbit);
|
result = dns_dbiterator_next(dbit);
|
||||||
if (result == ISC_R_NOMORE)
|
if (result == ISC_R_NOMORE)
|
||||||
CHECK(dns_dbiterator_first(dbit));
|
CHECK(dns_dbiterator_first(dbit));
|
||||||
@@ -3798,7 +3798,7 @@ next_active(dns_db_t *db, dns_dbversion_t *version, dns_name_t *oldname,
|
|||||||
dns_rdatasetiter_destroy(&rdsit);
|
dns_rdatasetiter_destroy(&rdsit);
|
||||||
if (result != ISC_R_NOMORE)
|
if (result != ISC_R_NOMORE)
|
||||||
break;
|
break;
|
||||||
}
|
} while (1);
|
||||||
failure:
|
failure:
|
||||||
if (node != NULL)
|
if (node != NULL)
|
||||||
dns_db_detachnode(db, &node);
|
dns_db_detachnode(db, &node);
|
||||||
|
Reference in New Issue
Block a user