summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5DS.c4
-rw-r--r--hl/src/H5IM.c4
-rw-r--r--hl/src/H5LT.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c
index 8c10623..141fc88 100644
--- a/hl/src/H5DS.c
+++ b/hl/src/H5DS.c
@@ -486,7 +486,7 @@ herr_t H5DSattach_scale(hid_t did,
*/
/* the attribute must be deleted, in order to the new one can reflect the changes*/
- if (H5Adelete(dsid,REFERENCE_LIST)<0)
+ if (H5Adelete2(dsid, ".", REFERENCE_LIST, H5P_DEFAULT) < 0)
goto out;
/* store the IDX information (index of the dataset that has the DS) */
@@ -836,7 +836,7 @@ herr_t H5DSdetach_scale(hid_t did,
*/
/* the attribute must be deleted, in order to the new one can reflect the changes*/
- if (H5Adelete(dsid,REFERENCE_LIST)<0)
+ if (H5Adelete2(dsid, ".", REFERENCE_LIST, H5P_DEFAULT) < 0)
goto out;
/* don't do anything for an empty array */
diff --git a/hl/src/H5IM.c b/hl/src/H5IM.c
index 4f91ea3..30a479e 100644
--- a/hl/src/H5IM.c
+++ b/hl/src/H5IM.c
@@ -612,7 +612,7 @@ herr_t H5IMlink_palette( hid_t loc_id,
goto out;
/* The attribute must be deleted, in order to the new one can reflect the changes*/
- if ( H5Adelete( image_id, "PALETTE" ) < 0 )
+ if(H5Adelete2(image_id, ".", "PALETTE", H5P_DEFAULT) < 0)
goto out;
/* Create a new reference for this palette. */
@@ -736,7 +736,7 @@ herr_t H5IMunlink_palette( hid_t loc_id,
{
/* Deelete the attribute */
- if ( H5Adelete( image_id, "PALETTE" ) < 0 )
+ if(H5Adelete2(image_id, ".", "PALETTE", H5P_DEFAULT) < 0)
goto out;
} /* H5T_REFERENCE */
diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c
index d7f720a..e26669f 100644
--- a/hl/src/H5LT.c
+++ b/hl/src/H5LT.c
@@ -1146,7 +1146,7 @@ herr_t H5LTset_attribute_string( hid_t loc_id,
/* The attribute already exists, delete it */
if ( has_attr == 1 )
{
- if ( H5Adelete( obj_id, attr_name ) < 0 )
+ if(H5Adelete2(obj_id, ".", attr_name, H5P_DEFAULT) < 0)
goto out;
}
@@ -1226,7 +1226,7 @@ herr_t H5LT_set_attribute_numerical( hid_t loc_id,
/* The attribute already exists, delete it */
if ( has_attr == 1 )
{
- if ( H5Adelete( obj_id, attr_name ) < 0 )
+ if(H5Adelete2(obj_id, ".", attr_name, H5P_DEFAULT) < 0)
goto out;
}
@@ -3119,7 +3119,7 @@ herr_t H5LT_set_attribute_string(hid_t dset_id,
/* the attribute already exists, delete it */
if ( has_attr == 1 )
{
- if ( H5Adelete(dset_id,name)<0)
+ if(H5Adelete2(dset_id, ".", name, H5P_DEFAULT) < 0)
return FAIL;
}