summaryrefslogtreecommitdiffstats
path: root/perform/overhead.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-08-14 20:27:05 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-08-14 20:27:05 (GMT)
commitf24035e12fef0d011f38b91da027a18207a6226b (patch)
tree6e62da52d08e684c1036f2b7d6e101be0579eea3 /perform/overhead.c
parent0f885d1a46949acd53029134e79b14a38005897d (diff)
downloadhdf5-f24035e12fef0d011f38b91da027a18207a6226b.zip
hdf5-f24035e12fef0d011f38b91da027a18207a6226b.tar.gz
hdf5-f24035e12fef0d011f38b91da027a18207a6226b.tar.bz2
[svn-r4352] Purpose:
Bug fix/code cleanup Description: Was using old-style property list for dataset transfer. Solution: Switched to use generic property list code for dataset transfer proplist. Platforms tested: FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'perform/overhead.c')
-rw-r--r--perform/overhead.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/perform/overhead.c b/perform/overhead.c
index 60a5e90..8be9ae2 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -199,7 +199,7 @@ test(fill_t fill_style, const double splits[],
}
if ((dcpl=H5Pcreate(H5P_DATASET_CREATE))<0) goto error;
if (H5Pset_chunk(dcpl, 1, ch_size)<0) goto error;
- if ((xfer=H5Pcreate(H5P_DATASET_XFER))<0) goto error;
+ if ((xfer=H5Pcreate_list(H5P_DATASET_XFER_NEW))<0) goto error;
if (H5Pset_btree_ratios(xfer, splits[0], splits[1], splits[2])<0) {
goto error;
}
@@ -275,6 +275,7 @@ test(fill_t fill_style, const double splits[],
H5Sclose(mspace);
H5Sclose(fspace);
H5Pclose(dcpl);
+ H5Pclose_list(xfer);
H5Fclose(file);
if (!verbose) {
@@ -320,6 +321,7 @@ test(fill_t fill_style, const double splits[],
H5Sclose(mspace);
H5Sclose(fspace);
H5Pclose(dcpl);
+ H5Pclose_list(xfer);
H5Fclose(file);
free(had);
close(fd);
@@ -354,11 +356,11 @@ main(int argc, char *argv[])
/* Default split ratios */
H5Eset_auto(display_error_cb, NULL);
- if ((xfer=H5Pcreate(H5P_DATASET_XFER))<0) goto error;
+ if ((xfer=H5Pcreate_list(H5P_DATASET_XFER_NEW))<0) goto error;
if (H5Pget_btree_ratios(xfer, splits+0, splits+1, splits+2)<0) {
goto error;
}
- if (H5Pclose(xfer)<0) goto error;
+ if (H5Pclose_list(xfer)<0) goto error;
/* Parse command-line options */
for (i=1, j=0; i<argc; i++) {