summaryrefslogtreecommitdiffstats
path: root/src/H5B.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:52:40 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:52:40 (GMT)
commitef92748be63cd0942846b5201fe72e7eb12e7d20 (patch)
treef48a634ec9e817ed87c70276e3bb87e91e1a0d38 /src/H5B.c
parentb09b4662b49ce935880bb1ffccdcf2276d48ae88 (diff)
downloadhdf5-ef92748be63cd0942846b5201fe72e7eb12e7d20.zip
hdf5-ef92748be63cd0942846b5201fe72e7eb12e7d20.tar.gz
hdf5-ef92748be63cd0942846b5201fe72e7eb12e7d20.tar.bz2
[svn-r6108] Purpose:
Code cleanup. Description: Cleaned up compiler warnings & updated a few comments. Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)} FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src/H5B.c')
-rw-r--r--src/H5B.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/H5B.c b/src/H5B.c
index a4d3bfe..4d1c328 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -1501,9 +1501,7 @@ H5B_iterate (H5F_t *f, const H5B_class_t *type, H5B_operator_t op, haddr_t addr,
if (NULL==(child=H5FL_ARR_ALLOC(haddr_t,(size_t)(2*H5B_Kvalue(f,type)),0)) ||
NULL==(key=H5MM_malloc((2*H5B_Kvalue(f, type)+1)*type->sizeof_nkey)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed");
- for (cur_addr=addr, ret_value=0;
- H5F_addr_defined(cur_addr);
- cur_addr=next_addr) {
+ for (cur_addr=addr, ret_value=0; H5F_addr_defined(cur_addr); cur_addr=next_addr) {
/*
* Save all the child addresses and native keys since we can't
@@ -1526,16 +1524,16 @@ H5B_iterate (H5F_t *f, const H5B_class_t *type, H5B_operator_t op, haddr_t addr,
/*
* Perform the iteration operator, which might invoke an
- * application callback.
+ * application callback.
*/
for (i=0; i<nchildren && !ret_value; i++) {
ret_value = (*op)(f, key+i*type->sizeof_nkey,
child[i], key+(i+1)*type->sizeof_nkey, udata);
if (ret_value<0)
HGOTO_ERROR(H5E_BTREE, H5E_CANTINIT, FAIL, "iterator function failed");
- }
- }
- }
+ } /* end for */
+ } /* end for */
+ } /* end else */
done:
if(child!=NULL)