summaryrefslogtreecommitdiffstats
path: root/src/H5Gent.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-07-16 20:48:45 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-07-16 20:48:45 (GMT)
commitf81bf3b56fa1d62d2649ce8e08c34fbba433d179 (patch)
tree77e25ef24fa6a7f8b2e48f705b20dfd3953793b7 /src/H5Gent.c
parentc1666563b7cd1bea9262efaf3365b5edfe3a3f21 (diff)
downloadhdf5-f81bf3b56fa1d62d2649ce8e08c34fbba433d179.zip
hdf5-f81bf3b56fa1d62d2649ce8e08c34fbba433d179.tar.gz
hdf5-f81bf3b56fa1d62d2649ce8e08c34fbba433d179.tar.bz2
[svn-r8893] Purpose:
Code cleanup Description: Clean up a bunch of warnings and bring new code better inline with current library coding practice. Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel Too minor to require h5committest Misc. update:
Diffstat (limited to 'src/H5Gent.c')
-rw-r--r--src/H5Gent.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5Gent.c b/src/H5Gent.c
index b050453..4d9fe62 100644
--- a/src/H5Gent.c
+++ b/src/H5Gent.c
@@ -501,10 +501,14 @@ H5G_ent_debug(H5F_t UNUSED *f, hid_t dxpl_id, const H5G_entry_t *ent, FILE * str
"Link value offset:",
(unsigned long)(ent->cache.slink.lval_offset));
if (heap>0 && H5F_addr_defined(heap)) {
- lval = H5HL_peek (ent->file, dxpl_id, heap, ent->cache.slink.lval_offset);
+ const H5HL_t *heap_ptr;
+
+ heap_ptr = H5HL_protect(ent->file, dxpl_id, heap);
+ lval = H5HL_offset_into(ent->file, heap_ptr, ent->cache.slink.lval_offset);
HDfprintf (stream, "%*s%-*s %s\n", nested_indent, "", nested_fwidth,
"Link value:",
lval);
+ H5HL_unprotect(ent->file, dxpl_id, heap_ptr, heap);
}
else
HDfprintf(stream, "%*s%-*s\n", nested_indent, "", nested_fwidth, "Warning: Invalid heap address given, name not displayed!");