summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2001-11-28 16:00:48 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2001-11-28 16:00:48 (GMT)
commit65f26fb16891f18cb94f2c4db8edefaf8a9e6d99 (patch)
tree90e782a161ae2f41e19f29cff8388180f016cda5
parent2dad38a26cfcc36ce3fbc399cbc7f446fb08afcd (diff)
downloadhdf5-65f26fb16891f18cb94f2c4db8edefaf8a9e6d99.zip
hdf5-65f26fb16891f18cb94f2c4db8edefaf8a9e6d99.tar.gz
hdf5-65f26fb16891f18cb94f2c4db8edefaf8a9e6d99.tar.bz2
[svn-r4657]
Purpose: a minor bug on H5T.c Description: should be HEREUTRN_ERROR(...,...,int,...) instead of HERUTRN_ERROR(...,...,int*,...) Solution: change HERETURN_ERROR(...,...,NULL,...) into HERETURN_ERROR(...,...,FAIL,...) Platforms tested: windows 2000
-rw-r--r--src/H5T.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/H5T.c b/src/H5T.c
index e5b64c1..299f98c 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -1733,21 +1733,21 @@ H5T_init_interface(void)
* ending with the most specific.
*/
if (NULL == (fixedpt = H5I_object(H5T_NATIVE_INT_g)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL == (floatpt = H5I_object(H5T_NATIVE_FLOAT_g)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL == (string = H5I_object(H5T_C_S1_g)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL == (bitfield = H5I_object(H5T_STD_B8LE_g)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL == (compound = H5T_create(H5T_COMPOUND, 1)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL == (enum_type = H5T_create(H5T_ENUM, 1)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL == (vlen = H5T_vlen_create(native_int)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL == (array = H5T_array_create(native_int,1,dim,NULL)))
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype");
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype");
if (NULL==(std_u32le=H5I_object(H5T_STD_U32LE_g)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype object");
if (NULL==(std_i32le=H5I_object(H5T_STD_I32LE_g)))