summaryrefslogtreecommitdiffstats
path: root/src/H5FDint.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-01-22 19:26:42 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-01-22 19:26:42 (GMT)
commit543a8d9d8658beccbd2e04a2c1d0597b74073a56 (patch)
tree40695df254c826465920f29811ec07a2f100e6ea /src/H5FDint.c
parent5eee1d7d7e352d90e0350f235b8066550a51f19b (diff)
downloadhdf5-543a8d9d8658beccbd2e04a2c1d0597b74073a56.zip
hdf5-543a8d9d8658beccbd2e04a2c1d0597b74073a56.tar.gz
hdf5-543a8d9d8658beccbd2e04a2c1d0597b74073a56.tar.bz2
[svn-r26005] fix error return value. minor change.
Diffstat (limited to 'src/H5FDint.c')
-rw-r--r--src/H5FDint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDint.c b/src/H5FDint.c
index a71889a..cb0563a 100644
--- a/src/H5FDint.c
+++ b/src/H5FDint.c
@@ -204,7 +204,7 @@ H5FD_read(H5FD_t *file, const H5P_genplist_t *dxpl, H5FD_mem_t type, haddr_t add
#endif /* H5_HAVE_PARALLEL */
if(HADDR_UNDEF == (eoa = (file->cls->get_eoa)(file, type)))
- HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, HADDR_UNDEF, "driver get_eoa request failed")
+ HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "driver get_eoa request failed")
if((addr + file->base_addr + size) > eoa)
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow, addr = %llu, size=%zu, eoa=%llu",
(unsigned long long)(addr+ file->base_addr), size, (unsigned long long)eoa)
@@ -253,7 +253,7 @@ H5FD_write(H5FD_t *file, const H5P_genplist_t *dxpl, H5FD_mem_t type, haddr_t ad
#endif /* H5_HAVE_PARALLEL */
if(HADDR_UNDEF == (eoa = (file->cls->get_eoa)(file, type)))
- HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, HADDR_UNDEF, "driver get_eoa request failed")
+ HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "driver get_eoa request failed")
if((addr + file->base_addr + size) > eoa)
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow, addr = %llu, size=%zu, eoa=%llu",
(unsigned long long)(addr+ file->base_addr), size, (unsigned long long)eoa)