summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2011-07-21 14:59:52 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2011-07-21 14:59:52 (GMT)
commita456729c4bd230d0cd7ec90a47f3036476fd4f79 (patch)
tree66aa44bd4a47f885b1e355104cbd6850b9952386 /src/H5AC.c
parent400e415d76fb1a64cb15fe013299707f194b34a0 (diff)
downloadhdf5-a456729c4bd230d0cd7ec90a47f3036476fd4f79.zip
hdf5-a456729c4bd230d0cd7ec90a47f3036476fd4f79.tar.gz
hdf5-a456729c4bd230d0cd7ec90a47f3036476fd4f79.tar.bz2
[svn-r21138] Description:
Bring r21137 from trunk to 1.8 branch: Tiny change to reduce code coupling w/H5F package. Tested on: FreeBSD/32 8.2 (loyalty) w/debug (too minor to require h5committest)
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index a26d586..a462ac6 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -950,7 +950,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
@@ -1267,7 +1267,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