diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-20 12:52:40 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-20 12:52:40 (GMT) |
commit | ef92748be63cd0942846b5201fe72e7eb12e7d20 (patch) | |
tree | f48a634ec9e817ed87c70276e3bb87e91e1a0d38 /src/H5B.c | |
parent | b09b4662b49ce935880bb1ffccdcf2276d48ae88 (diff) | |
download | hdf5-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.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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) |