summaryrefslogtreecommitdiffstats
path: root/src/H5Glink.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-02 21:46:39 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-02 21:46:39 (GMT)
commit84a4166e72abac9eb08a7daa3f67c90227641cda (patch)
treeef7159ea41f3f22ef049f0ddf240c561e09e26d0 /src/H5Glink.c
parent79aecf895393d2871764a9405c9698fd73225925 (diff)
downloadhdf5-84a4166e72abac9eb08a7daa3f67c90227641cda.zip
hdf5-84a4166e72abac9eb08a7daa3f67c90227641cda.tar.gz
hdf5-84a4166e72abac9eb08a7daa3f67c90227641cda.tar.bz2
[svn-r12707] Description:
Further minor modifications to the file format for tracking links in groups. This is tentatively the "final" file format for groups. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Glink.c')
-rw-r--r--src/H5Glink.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/H5Glink.c b/src/H5Glink.c
index ab9fdce..cc86edd 100644
--- a/src/H5Glink.c
+++ b/src/H5Glink.c
@@ -563,29 +563,29 @@ H5G_link_remove_cb(const void *_mesg, unsigned UNUSED idx, void *_udata)
if(HDstrcmp(lnk->name, udata->name) == 0) {
switch(lnk->type)
{
- case H5L_TYPE_HARD:
- {
- H5O_loc_t tmp_oloc; /* Temporary object location */
-
- /* Build temporary object location */
- tmp_oloc.file = udata->file;
- tmp_oloc.addr = lnk->u.hard.addr;
-
- /* Get the type of the object */
- /* Note: no way to check for error :-( */
- *(udata->obj_type) = H5O_obj_type(&tmp_oloc, udata->dxpl_id);
- }
- break;
+ case H5L_TYPE_HARD:
+ {
+ H5O_loc_t tmp_oloc; /* Temporary object location */
- case H5L_TYPE_SOFT:
- *(udata->obj_type) = H5G_LINK;
- break;
+ /* Build temporary object location */
+ tmp_oloc.file = udata->file;
+ tmp_oloc.addr = lnk->u.hard.addr;
+
+ /* Get the type of the object */
+ /* Note: no way to check for error :-( */
+ *(udata->obj_type) = H5O_obj_type(&tmp_oloc, udata->dxpl_id);
+ }
+ break;
+
+ case H5L_TYPE_SOFT:
+ *(udata->obj_type) = H5G_LINK;
+ break;
- default: /* User-defined link */
- if(lnk->type < H5L_TYPE_UD_MIN)
- HGOTO_ERROR(H5E_SYM, H5E_BADVALUE, FAIL, "unknown link type")
+ default: /* User-defined link */
+ if(lnk->type < H5L_TYPE_UD_MIN)
+ HGOTO_ERROR(H5E_SYM, H5E_BADVALUE, FAIL, "unknown link type")
- *(udata->obj_type) = H5G_UDLINK;
+ *(udata->obj_type) = H5G_UDLINK;
}
/* Stop the iteration, we found the correct link */
HGOTO_DONE(H5O_ITER_STOP)