diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2011-07-21 14:58:47 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2011-07-21 14:58:47 (GMT) |
commit | 73cb1cc917d3a217546f77c72f30aabef1becd13 (patch) | |
tree | a71e6b3512e34e9fb69aba18832d6e4727f973ad /src/H5AC.c | |
parent | 9d7db150203eebb96360275c1c8fc5b482d31182 (diff) | |
download | hdf5-73cb1cc917d3a217546f77c72f30aabef1becd13.zip hdf5-73cb1cc917d3a217546f77c72f30aabef1becd13.tar.gz hdf5-73cb1cc917d3a217546f77c72f30aabef1becd13.tar.bz2 |
[svn-r21137] Description:
Tiny change to reduce code coupling w/H5F package.
Tested on:
FreeBSD/64 8.2 (freedom) w/debug
(too minor to require h5committest)
Diffstat (limited to 'src/H5AC.c')
-rw-r--r-- | src/H5AC.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -965,7 +965,7 @@ H5AC_insert_entry(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t add HDassert(thing); /* Check for invalid access request */ - if(0 == (f->intent & H5F_ACC_RDWR)) + if(0 == (H5F_INTENT(f) & H5F_ACC_RDWR)) HGOTO_ERROR(H5E_CACHE, H5E_BADVALUE, FAIL, "no write intent on file") #if H5AC__TRACE_FILE_ENABLED @@ -1332,7 +1332,7 @@ H5AC_protect(H5F_t *f, HDassert(H5F_addr_defined(addr)); /* Check for invalid access request */ - if(0 == (f->intent & H5F_ACC_RDWR) && rw == H5AC_WRITE) + if(0 == (H5F_INTENT(f) & H5F_ACC_RDWR) && rw == H5AC_WRITE) HGOTO_ERROR(H5E_CACHE, H5E_BADVALUE, NULL, "no write intent on file") #if H5AC__TRACE_FILE_ENABLED |