diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-01-22 19:27:37 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-01-22 19:27:37 (GMT) |
commit | feb7135d5d8e82e13e177892f942e697410aa956 (patch) | |
tree | a5a8e6a83bbcefac958fea6d017195c9a2b3d631 /src/H5FDint.c | |
parent | 643b662d87cc7771b624a1c520d4775fdf225dec (diff) | |
download | hdf5-feb7135d5d8e82e13e177892f942e697410aa956.zip hdf5-feb7135d5d8e82e13e177892f942e697410aa956.tar.gz hdf5-feb7135d5d8e82e13e177892f942e697410aa956.tar.bz2 |
[svn-r26006] fix error return value in H5FD_read/write. minor change.
Diffstat (limited to 'src/H5FDint.c')
-rw-r--r-- | src/H5FDint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDint.c b/src/H5FDint.c index cf40a77..0027aa3 100644 --- a/src/H5FDint.c +++ b/src/H5FDint.c @@ -201,7 +201,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) @@ -250,7 +250,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) |