diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-23 14:03:22 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-23 14:03:22 (GMT) |
commit | 1009b131f69ee6dbf293c106a1aaa003951f2d07 (patch) | |
tree | a1d062ffc1060bf8e28da518a3c8c5ba709626fe /src/H5Gnode.c | |
parent | 8ec60574b1cfa7a37c8e235e80ef50e8ef8b1a76 (diff) | |
download | hdf5-1009b131f69ee6dbf293c106a1aaa003951f2d07.zip hdf5-1009b131f69ee6dbf293c106a1aaa003951f2d07.tar.gz hdf5-1009b131f69ee6dbf293c106a1aaa003951f2d07.tar.bz2 |
[svn-r8725] Purpose:
Refactor bug fix
Description:
Make bug fix for detecting the type of a soft link more general by
registering an "isa" function for soft links.
Platforms tested:
FreeBSD 4.10 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'src/H5Gnode.c')
-rw-r--r-- | src/H5Gnode.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/H5Gnode.c b/src/H5Gnode.c index 71a1f1a..4ddc799 100644 --- a/src/H5Gnode.c +++ b/src/H5Gnode.c @@ -1630,16 +1630,7 @@ H5G_node_type(H5F_t *f, hid_t dxpl_id, void UNUSED *_lt_key, haddr_t addr, if(bt_udata->idx >= bt_udata->num_objs && bt_udata->idx < (bt_udata->num_objs+sn->nsyms)) { loc_idx = bt_udata->idx - bt_udata->num_objs; - - /* Since H5G_get_type has to use header address in table entry and the - * header address for soft link is HADDR_UNDEF, make a special case for - * soft link here. - */ - if(sn->entry[loc_idx].type == H5G_CACHED_SLINK) - bt_udata->type = H5G_LINK; - else - bt_udata->type = H5G_get_type(&(sn->entry[loc_idx]), dxpl_id); - + bt_udata->type = H5G_get_type(&(sn->entry[loc_idx]), dxpl_id); ret_value = H5B_ITER_STOP; } else { bt_udata->num_objs += sn->nsyms; |