summaryrefslogtreecommitdiffstats
path: root/hl/src/H5IM.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-09-27 22:42:20 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-09-27 22:42:20 (GMT)
commitc63f9b42ec89ff649f4f086e2f422fa01d9967b1 (patch)
tree563d292a805c97be9136799016215ea99af39452 /hl/src/H5IM.c
parenta9a10b0a055824f676cf426fcd928772aeaa99c8 (diff)
downloadhdf5-c63f9b42ec89ff649f4f086e2f422fa01d9967b1.zip
hdf5-c63f9b42ec89ff649f4f086e2f422fa01d9967b1.tar.gz
hdf5-c63f9b42ec89ff649f4f086e2f422fa01d9967b1.tar.bz2
[svn-r14162] Description:
Make H5Adelete versioned and switch internal library use to H5Adelete2. Add regression test for H5Adelete1 Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode AIX/32 5.3 (copper) w/FORTRAN, w/parallel, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'hl/src/H5IM.c')
-rw-r--r--hl/src/H5IM.c4
1 files changed, 2 insertions, 2 deletions
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 */