summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Chilan <chilan@hdfgroup.org>2007-01-17 20:48:04 (GMT)
committerChristian Chilan <chilan@hdfgroup.org>2007-01-17 20:48:04 (GMT)
commit6328f51d48a8e7ea1337640049b19f4ba03e7389 (patch)
tree72a67d2b733e2f4cd51685c690220f6d3def0f49 /src
parent36d59974a6e5192935793c6a6db9159aa3776133 (diff)
downloadhdf5-6328f51d48a8e7ea1337640049b19f4ba03e7389.zip
hdf5-6328f51d48a8e7ea1337640049b19f4ba03e7389.tar.gz
hdf5-6328f51d48a8e7ea1337640049b19f4ba03e7389.tar.bz2
[svn-r13147] Changed error return value of H5Sselect_valid() from 0 to FAIL.
Diffstat (limited to 'src')
-rw-r--r--src/H5Sselect.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index a2f5f84..c3247e5 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -356,6 +356,8 @@ H5S_get_select_npoints(const H5S_t *space)
COMMENTS, BUGS, ASSUMPTIONS
EXAMPLES
REVISION LOG
+ Christian Chilan 01/17/2007
+ Changed the error return value from 0 to FAIL.
--------------------------------------------------------------------------*/
htri_t
H5Sselect_valid(hid_t spaceid)
@@ -363,12 +365,12 @@ H5Sselect_valid(hid_t spaceid)
H5S_t *space = NULL; /* Dataspace to modify selection of */
htri_t ret_value; /* return value */
- FUNC_ENTER_API(H5Sselect_valid, 0);
+ FUNC_ENTER_API(H5Sselect_valid, FAIL);
H5TRACE1("t", "i", spaceid);
/* Check args */
if (NULL == (space=H5I_object_verify(spaceid, H5I_DATASPACE)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "not a dataspace");
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace");
ret_value = H5S_SELECT_VALID(space);