summaryrefslogtreecommitdiffstats
path: root/test/mf.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-23 01:46:12 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-23 01:46:12 (GMT)
commit145ef3ceee20c28a443bd11507c58858bea3f889 (patch)
treea899cd31150c9642b74ff79e88b76c0c5f228f1f /test/mf.c
parent9be5b2842e307f5f5b67c7e42217ddff67b0bf61 (diff)
downloadhdf5-145ef3ceee20c28a443bd11507c58858bea3f889.zip
hdf5-145ef3ceee20c28a443bd11507c58858bea3f889.tar.gz
hdf5-145ef3ceee20c28a443bd11507c58858bea3f889.tar.bz2
more cleanup
Diffstat (limited to 'test/mf.c')
-rw-r--r--test/mf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/mf.c b/test/mf.c
index 6030314..141f5ec 100644
--- a/test/mf.c
+++ b/test/mf.c
@@ -38,7 +38,6 @@
#include "H5Iprivate.h"
#include "H5VLprivate.h" /* Virtual Object Layer */
#include "H5VMprivate.h"
-#include "H5private.h"
#define FILENAME_LEN 1024
@@ -7529,7 +7528,7 @@ error:
*-------------------------------------------------------------------------
*/
static int
-set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t split)
+set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t is_multi_or_split)
{
H5FD_mem_t memb_map[H5FD_MEM_NTYPES];
hid_t memb_fapl_arr[H5FD_MEM_NTYPES];
@@ -7538,7 +7537,7 @@ set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t split)
hbool_t relax;
H5FD_mem_t mt;
- HDassert(split);
+ HDassert(is_multi_or_split);
HDmemset(memb_name, 0, sizeof memb_name);
@@ -7546,7 +7545,7 @@ set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t split)
if(H5Pget_fapl_multi(fapl, memb_map, memb_fapl_arr, memb_name, memb_addr, &relax) < 0)
TEST_ERROR
- if(split) {
+ if(is_multi_or_split) {
/* Set memb_addr aligned */
memb_addr[H5FD_MEM_SUPER] = ((memb_addr[H5FD_MEM_SUPER] + pagesize - 1) / pagesize) * pagesize;
memb_addr[H5FD_MEM_DRAW] = ((memb_addr[H5FD_MEM_DRAW] + pagesize - 1) / pagesize) * pagesize;