diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2016-12-13 17:54:34 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2016-12-13 17:54:34 (GMT) |
commit | 669b89ba0defe95e8948cb4917ed071d74932749 (patch) | |
tree | fc1289f0cc40d20775b4b137ad5247ada07c8b46 /examples/h5dsm_dset_read.c | |
parent | 3889eeb5c86376fa677d48c8156584435f5cea66 (diff) | |
download | hdf5-669b89ba0defe95e8948cb4917ed071d74932749.zip hdf5-669b89ba0defe95e8948cb4917ed071d74932749.tar.gz hdf5-669b89ba0defe95e8948cb4917ed071d74932749.tar.bz2 |
Split H5VLdaosm.h into public and private headers, to remove the need
for the application to include daos.h. Fix bugs in examples.
Diffstat (limited to 'examples/h5dsm_dset_read.c')
-rw-r--r-- | examples/h5dsm_dset_read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/h5dsm_dset_read.c b/examples/h5dsm_dset_read.c index bd98b98..0fbc56f 100644 --- a/examples/h5dsm_dset_read.c +++ b/examples/h5dsm_dset_read.c @@ -32,10 +32,6 @@ int main(int argc, char *argv[]) { if((file = H5Fopen_ff(argv[2], H5F_ACC_RDONLY, fapl, argc == 4 ? &trans : NULL)) < 0) ERROR; - /* Open dataset */ - if((dset = H5Dopen_ff(file, argv[3], H5P_DEFAULT, trans)) < 0) - ERROR; - /* Create transaction if specified */ if(argc == 5) { trans_num = (uint64_t)atoi(argv[4]); @@ -44,6 +40,10 @@ int main(int argc, char *argv[]) { } else if(H5TRget_trans_num(trans, &trans_num) < 0) + ERROR; + + /* Open dataset */ + if((dset = H5Dopen_ff(file, argv[3], H5P_DEFAULT, trans)) < 0) ERROR; printf("Reading dataset - transaction number = %llu\n", (long long unsigned)trans_num); |