summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_ref.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-03-12 16:36:34 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-03-12 16:36:34 (GMT)
commitc24cea791f4a7c41a5258a943a4f614ad193948c (patch)
tree514a542eaba372169c0255f80981252c1d4399d4 /tools/lib/h5tools_ref.c
parent3015df0a5b02dee38264b191997c1949596c2c95 (diff)
downloadhdf5-c24cea791f4a7c41a5258a943a4f614ad193948c.zip
hdf5-c24cea791f4a7c41a5258a943a4f614ad193948c.tar.gz
hdf5-c24cea791f4a7c41a5258a943a4f614ad193948c.tar.bz2
[svn-r13503]
Preparation for making 1.6 and 1.7 h5dump more similar and 1.6 to have 1.7 fixed bugs incorporated
Diffstat (limited to 'tools/lib/h5tools_ref.c')
-rw-r--r--tools/lib/h5tools_ref.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/lib/h5tools_ref.c b/tools/lib/h5tools_ref.c
index 1d4a2f7..2a7a4ff 100644
--- a/tools/lib/h5tools_ref.c
+++ b/tools/lib/h5tools_ref.c
@@ -75,15 +75,15 @@ init_ref_path_table(hid_t fid)
/* Create skip list to store reference path information */
if((ref_path_table = H5SL_create(H5SL_TYPE_HADDR, 0.5, (size_t)16))==NULL)
- return (-1);
+ return (-1);
if((root_path = HDstrdup("/")) == NULL)
- return (-1);
+ return (-1);
if(H5Gget_objinfo(fid, "/", TRUE, &sb)<0) {
- /* fatal error? */
- HDfree(root_path);
- return (-1);
+ /* fatal error? */
+ HDfree(root_path);
+ return (-1);
}
objno = (haddr_t)sb.objno[0] | ((haddr_t)sb.objno[1] << (8 * sizeof(long)));
@@ -163,7 +163,7 @@ ref_path_table_lookup(const char *thepath)
/* Check for external link first, so we don't return the OID of an object in another file */
if(H5Gget_objinfo(thefile, thepath, FALSE, &sb)<0)
- return HADDR_UNDEF;
+ return HADDR_UNDEF;
if(sb.type == H5G_LINK) {
/* Get object ID for object at path */
/* (If the object is not a soft link, we've already retrieved the