diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-07-27 18:09:56 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-07-27 18:09:56 (GMT) |
commit | 34323c289dabeb875beb9765fafa3651d0378f4f (patch) | |
tree | 5917e0f4d6c1f2d28c8c84237186243fecd7042a /src/H5B2int.c | |
parent | aecefbb2f5737890a27dcfd2ef20276d2ff88b2a (diff) | |
download | hdf5-34323c289dabeb875beb9765fafa3651d0378f4f.zip hdf5-34323c289dabeb875beb9765fafa3651d0378f4f.tar.gz hdf5-34323c289dabeb875beb9765fafa3651d0378f4f.tar.bz2 |
Minor normalization with develop
Diffstat (limited to 'src/H5B2int.c')
-rw-r--r-- | src/H5B2int.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/H5B2int.c b/src/H5B2int.c index 902253a..53ac835 100644 --- a/src/H5B2int.c +++ b/src/H5B2int.c @@ -35,6 +35,7 @@ #include "H5private.h" /* Generic Functions */ #include "H5B2pkg.h" /* v2 B-trees */ #include "H5Eprivate.h" /* Error handling */ +#include "H5MMprivate.h" /* Memory management */ #include "H5VMprivate.h" /* Vectors and arrays */ @@ -1572,23 +1573,20 @@ H5B2__iterate_node(H5B2_hdr_t *hdr, uint16_t depth, const H5B2_node_ptr_t *curr_ /* Iterate through records, in order */ for(u = 0; u < curr_node->node_nrec && !ret_value; u++) { /* Descend into child node, if current node is an internal node */ - if(depth > 0) { + if(depth > 0) if((ret_value = H5B2__iterate_node(hdr, (uint16_t)(depth - 1), &(node_ptrs[u]), node, op, op_data)) < 0) HERROR(H5E_BTREE, H5E_CANTLIST, "node iteration failed"); - } /* end if */ /* Make callback for current record */ - if(!ret_value) { + if(!ret_value) if((ret_value = (op)(H5B2_NAT_NREC(native, hdr, u), op_data)) < 0) HERROR(H5E_BTREE, H5E_CANTLIST, "iterator function failed"); - } /* end if */ } /* end for */ /* Descend into last child node, if current node is an internal node */ - if(!ret_value && depth > 0) { + if(!ret_value && depth > 0) if((ret_value = H5B2__iterate_node(hdr, (uint16_t)(depth - 1), &(node_ptrs[u]), node, op, op_data)) < 0) HERROR(H5E_BTREE, H5E_CANTLIST, "node iteration failed"); - } /* end if */ done: /* Unpin the node if it was pinned */ |