summaryrefslogtreecommitdiffstats
path: root/examples/h5dsm_dset_read.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2016-11-29 23:45:20 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2016-11-29 23:45:20 (GMT)
commitb866bbfe3a2f8b0c3e643a99aebf505bebc3418c (patch)
tree3d2feb0155fd32319f17b97b5cb0e19f859447ca /examples/h5dsm_dset_read.c
parent2b28dc62469fb21cb0fff1082e5a6a764e2de8b7 (diff)
downloadhdf5-b866bbfe3a2f8b0c3e643a99aebf505bebc3418c.zip
hdf5-b866bbfe3a2f8b0c3e643a99aebf505bebc3418c.tar.gz
hdf5-b866bbfe3a2f8b0c3e643a99aebf505bebc3418c.tar.bz2
Fix bugs in read/write implementation. Only seems to read/write the
first element. Examples don't build correctly with make.
Diffstat (limited to 'examples/h5dsm_dset_read.c')
-rw-r--r--examples/h5dsm_dset_read.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/h5dsm_dset_read.c b/examples/h5dsm_dset_read.c
index aeb9d71..39af503 100644
--- a/examples/h5dsm_dset_read.c
+++ b/examples/h5dsm_dset_read.c
@@ -41,7 +41,7 @@ int main(int argc, char *argv[]) {
buf[i][j] = -1;
/* Read data */
- if(H5Dread_ff(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf) < 0)
+ if(H5Dread_ff(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf, trans) < 0)
ERROR;
/* Print buffer */
@@ -59,8 +59,6 @@ int main(int argc, char *argv[]) {
ERROR;
if(H5Fclose(file) < 0)
ERROR;
- if(H5Sclose(space) < 0)
- ERROR;
if(H5Pclose(fapl) < 0)
ERROR;
@@ -75,7 +73,6 @@ error:
H5Dclose_ff(dset, -1);
H5TRclose(trans);
H5Fclose(file);
- H5Sclose(space);
H5Pclose(fapl);
} H5E_END_TRY;