summaryrefslogtreecommitdiffstats
path: root/tools/h5ls/h5ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5ls/h5ls.c')
-rw-r--r--tools/h5ls/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index b568bc9..978baf2 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -1770,10 +1770,10 @@ udlink_open(hid_t location, const char *name)
if(H5Lget_linkinfo(location, name, &linfo, H5P_DEFAULT) < 0) return -1;
- switch(linfo.linkclass)
+ switch(linfo.type)
{
/* For external links, try to display info for the object it points to */
- case H5L_LINK_EXTERNAL:
+ case H5L_TYPE_EXTERNAL:
if ((buf = HDmalloc(linfo.u.link_size))==NULL) goto error;
if (H5Lget_linkval (location, name, sizeof(buf), buf, H5P_DEFAULT)<0) goto error;