summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2011-07-21 14:58:47 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2011-07-21 14:58:47 (GMT)
commit73cb1cc917d3a217546f77c72f30aabef1becd13 (patch)
treea71e6b3512e34e9fb69aba18832d6e4727f973ad /src
parent9d7db150203eebb96360275c1c8fc5b482d31182 (diff)
downloadhdf5-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')
-rw-r--r--src/H5AC.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 1c005a8..2b78c84 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -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