summaryrefslogtreecommitdiffstats
path: root/src/H5HG.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2011-07-20 02:25:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2011-07-20 02:25:35 (GMT)
commitcc3bdaa6d905f21d3c9387e811270ce9f03dced0 (patch)
tree1668b4b5dd73d318a36d8ca689b3d0749819186e /src/H5HG.c
parentc021348b268169d25efb5f5f975e65da79c15a8d (diff)
downloadhdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.zip
hdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.tar.gz
hdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.tar.bz2
[svn-r21130] Description:
Bring r21126 from trunk to 1.8 branch: Clean up some compiler warnings, but mainly an interim checkin on the path of reducing code coupling in the library by removing most of the places which were accessing H5F package definitions. Tested on: Mac OS X/32 10.6.8 (amazon) w/debug FreeBSD/32 8.2 (loyalty) w/debug FreeBSD/64 8.2 (freedom) w/debug Linux/32 2.6 (jam) w/debug Linux/64 2.6 (koala) w/debug Linux/64 2.6 (heiwa) w/debug
Diffstat (limited to 'src/H5HG.c')
-rw-r--r--src/H5HG.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index 8f4bd89..19c80b7 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -552,7 +552,7 @@ H5HG_insert(H5F_t *f, hid_t dxpl_id, size_t size, void *obj, H5HG_t *hobj/*out*/
HDassert(0 == size || obj);
HDassert(hobj);
- if(0 == (f->intent & H5F_ACC_RDWR))
+ if(0 == (H5F_INTENT(f) & H5F_ACC_RDWR))
HGOTO_ERROR(H5E_HEAP, H5E_WRITEERROR, FAIL, "no write intent on file")
/* Find a large enough collection on the CWFS list */
@@ -775,7 +775,7 @@ H5HG_link(H5F_t *f, hid_t dxpl_id, const H5HG_t *hobj, int adjust)
/* Check args */
HDassert(f);
HDassert(hobj);
- if(0 == (f->intent & H5F_ACC_RDWR))
+ if(0 == (H5F_INTENT(f) & H5F_ACC_RDWR))
HGOTO_ERROR(H5E_HEAP, H5E_WRITEERROR, FAIL, "no write intent on file")
/* Load the heap */
@@ -838,7 +838,7 @@ H5HG_remove (H5F_t *f, hid_t dxpl_id, H5HG_t *hobj)
/* Check args */
HDassert(f);
HDassert(hobj);
- if(0 == (f->intent & H5F_ACC_RDWR))
+ if(0 == (H5F_INTENT(f) & H5F_ACC_RDWR))
HGOTO_ERROR(H5E_HEAP, H5E_WRITEERROR, FAIL, "no write intent on file")
/* Load the heap */