summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2010-08-05 17:14:16 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2010-08-05 17:14:16 (GMT)
commitddf5c9caa55ef9b98977ec064175fd684177c3f9 (patch)
tree7460b1f5316a732d95f1f57f44c1a9f0b6486794 /test/links.c
parentabf4926632d90f52e7f991e0b8120d0335073476 (diff)
downloadhdf5-ddf5c9caa55ef9b98977ec064175fd684177c3f9.zip
hdf5-ddf5c9caa55ef9b98977ec064175fd684177c3f9.tar.gz
hdf5-ddf5c9caa55ef9b98977ec064175fd684177c3f9.tar.bz2
[svn-r19175] Bug fix for #1239 - The filter's public function CAN_APPLY should return htri_t not
herr_t. To minimize the change of the library's behavior, in the function H5Z_prelude_callback of H5Z.c, if the return value of can_apply is FALSE and the filter is MANDATE, this function returns a FAILURE. If the return value is FALSE but the filter is OPTIONAL, this function returns a SUCCEED. During the IO, the filter will fail and return a size of zero. But the pipeline will skip this filter. Tested the same change for 1.8 on jam, linew, and amani. Tested on jam with szip.
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/links.c b/test/links.c
index f23a566..321b9b4 100644
--- a/test/links.c
+++ b/test/links.c
@@ -8853,7 +8853,7 @@ static enum {
LFS_DECODED
} link_filter_state;
-static herr_t link_filter_can_apply(hid_t dcpl_id, hid_t type_id, hid_t space_id)
+static htri_t link_filter_can_apply(hid_t dcpl_id, hid_t type_id, hid_t space_id)
{
if(dcpl_id >= 0 || type_id >= 0 || space_id >= 0)
return -1;