Commit 0e27dac0 authored by Andreas Gustafsson's avatar Andreas Gustafsson

spacing

parent 059a29a1
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.182 2001/08/30 05:52:14 marka Exp $ */
/* $Id: adb.c,v 1.183 2001/10/19 01:29:41 gson Exp $ */
/*
* Implementation notes
......@@ -839,7 +839,7 @@ shutdown_names(dns_adb_t *adb) {
dns_adbname_t *name;
dns_adbname_t *next_name;
for (bucket = 0 ; bucket < NBUCKETS ; bucket++) {
for (bucket = 0; bucket < NBUCKETS; bucket++) {
LOCK(&adb->namelocks[bucket]);
adb->name_sd[bucket] = ISC_TRUE;
......@@ -879,7 +879,7 @@ shutdown_entries(dns_adb_t *adb) {
dns_adbentry_t *entry;
dns_adbentry_t *next_entry;
for (bucket = 0 ; bucket < NBUCKETS ; bucket++) {
for (bucket = 0; bucket < NBUCKETS; bucket++) {
LOCK(&adb->entrylocks[bucket]);
adb->entry_sd[bucket] = ISC_TRUE;
......@@ -2080,7 +2080,7 @@ timer_cleanup(isc_task_t *task, isc_event_t *ev) {
isc_stdtime_get(&now);
for (i = 0 ; i < CLEAN_BUCKETS ; i++) {
for (i = 0; i < CLEAN_BUCKETS; i++) {
/*
* Call our cleanup routines.
*/
......@@ -2212,13 +2212,13 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr,
result = isc_mutexblock_init(adb->namelocks, NBUCKETS);
if (result != ISC_R_SUCCESS)
goto fail1;
for (i = 0 ; i < NBUCKETS ; i++) {
for (i = 0; i < NBUCKETS; i++) {
ISC_LIST_INIT(adb->names[i]);
adb->name_sd[i] = ISC_FALSE;
adb->name_refcnt[i] = 0;
adb->irefcnt++;
}
for (i = 0 ; i < NBUCKETS ; i++) {
for (i = 0; i < NBUCKETS; i++) {
ISC_LIST_INIT(adb->entries[i]);
adb->entry_sd[i] = ISC_FALSE;
adb->entry_refcnt[i] = 0;
......@@ -2913,15 +2913,15 @@ dump_adb(dns_adb_t *adb, FILE *f, isc_boolean_t debug) {
adb, adb->erefcnt, adb->irefcnt,
isc_mempool_getallocated(adb->nhmp));
for (i = 0 ; i < NBUCKETS ; i++)
for (i = 0; i < NBUCKETS; i++)
LOCK(&adb->namelocks[i]);
for (i = 0 ; i < NBUCKETS ; i++)
for (i = 0; i < NBUCKETS; i++)
LOCK(&adb->entrylocks[i]);
/*
* Dump the names
*/
for (i = 0 ; i < NBUCKETS ; i++) {
for (i = 0; i < NBUCKETS; i++) {
name = ISC_LIST_HEAD(adb->names[i]);
if (name == NULL)
continue;
......@@ -4054,7 +4054,7 @@ dns_adb_flush(dns_adb_t *adb) {
LOCK(&adb->lock);
for (i = 0 ; i < NBUCKETS ; i++) {
for (i = 0; i < NBUCKETS; i++) {
/*
* Call our cleanup routines.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment