From fbfed7400fdccc43e3a3b3a9dc7966083e65fbdb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 9 Apr 2008 04:29:16 +0000 Subject: [PATCH] "while (1) {} -> do {} while (1);" to suppress a warning --- lib/dns/zone.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 2ac0286f9d..e8d89c112a 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * 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 */ @@ -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_dbiterator_seek(dbit, oldname)); - while (1) { + do { result = dns_dbiterator_next(dbit); if (result == ISC_R_NOMORE) 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); if (result != ISC_R_NOMORE) break; - } + } while (1); failure: if (node != NULL) dns_db_detachnode(db, &node);