diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2016-11-06 20:08:19 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2016-11-06 20:08:19 (GMT) |
commit | bb6cb6adb005b0447c1dbb5d61711e3a459ade1f (patch) | |
tree | 07b24f1271e0a53b541aff9a680d557ee1671689 /test/evict_on_close.c | |
parent | 2b5efccc302ee577daa59639109921456f787813 (diff) | |
download | hdf5-bb6cb6adb005b0447c1dbb5d61711e3a459ade1f.zip hdf5-bb6cb6adb005b0447c1dbb5d61711e3a459ade1f.tar.gz hdf5-bb6cb6adb005b0447c1dbb5d61711e3a459ade1f.tar.bz2 |
Code style and warning cleanups, from revise_chunks branch.
Diffstat (limited to 'test/evict_on_close.c')
-rw-r--r-- | test/evict_on_close.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/evict_on_close.c b/test/evict_on_close.c index b7482dd..3124371 100644 --- a/test/evict_on_close.c +++ b/test/evict_on_close.c @@ -91,26 +91,23 @@ verify_tag_not_in_cache(H5F_t *f, haddr_t tag) { H5C_t *cache_ptr = NULL; /* cache pointer */ int i = 0; /* iterator */ - H5C_cache_entry_t *entry_ptr = NULL; /* entry pointer */ + /* Get Internal Cache Pointers */ cache_ptr = f->shared->cache; for(i = 0; i < H5C__HASH_TABLE_LEN; i++) { + H5C_cache_entry_t *entry_ptr; /* entry pointer */ entry_ptr = cache_ptr->index[i]; - while(entry_ptr != NULL) { - if(tag == entry_ptr->tag) return TRUE; else entry_ptr = entry_ptr->ht_next; - } /* end while */ } /* end for */ return FALSE; - } /* end verify_tag_not_in_cache() */ |