summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-11-15 17:46:52 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-11-15 17:46:52 (GMT)
commit1af9fe5775012f0a7d6db5eb996bf739f2fcacc9 (patch)
treef1ad43f3c6a3004e29ff7781182fc61b552d376c /src
parent652c443d7081f0df098a56d218b7ddd907ee0947 (diff)
downloadhdf5-1af9fe5775012f0a7d6db5eb996bf739f2fcacc9.zip
hdf5-1af9fe5775012f0a7d6db5eb996bf739f2fcacc9.tar.gz
hdf5-1af9fe5775012f0a7d6db5eb996bf739f2fcacc9.tar.bz2
[svn-r2928] Purpose:
Buglet fix Description: Get rid of compiler warnings. The HGOTO_RETURN was returning NULL when it should have returned FAIL. Solution: Swapped the two. Platforms tested: Linux
Diffstat (limited to 'src')
-rw-r--r--src/H5P.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 04e68af..49124cd 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -4915,7 +4915,7 @@ hid_t H5Pget_class_new(hid_t plist_id)
/* Increment the outstanding references to the class object */
if(H5P_access_class(pclass,H5P_MOD_INC_REF)<0)
- HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, NULL,"Can't increment class ID ref count");
+ HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, FAIL,"Can't increment class ID ref count");
/* Get an atom for the class */
if ((ret_value = H5I_register(H5I_GENPROP_CLS, pclass))<0)
@@ -6283,7 +6283,7 @@ hid_t H5Pget_class_parent(hid_t pclass_id)
/* Increment the outstanding references to the class object */
if(H5P_access_class(parent,H5P_MOD_INC_REF)<0)
- HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, NULL,"Can't increment class ID ref count");
+ HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, FAIL,"Can't increment class ID ref count");
/* Get an atom for the class */
if ((ret_value = H5I_register(H5I_GENPROP_CLS, parent))<0)