summaryrefslogtreecommitdiffstats
path: root/tools/test/h5format_convert/h5fc_chk_idx.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 15:18:01 (GMT)
committerGitHub <noreply@github.com>2023-06-29 15:18:01 (GMT)
commit9f430d15b004495d17826840ef1a4f281215c7f9 (patch)
treeeddd0bd281a80adb336403582bd236c6a24b0dc6 /tools/test/h5format_convert/h5fc_chk_idx.c
parenta5f1fb01b9ef867cf94158cdb42ffb1d46bae916 (diff)
downloadhdf5-9f430d15b004495d17826840ef1a4f281215c7f9.zip
hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.tar.gz
hdf5-9f430d15b004495d17826840ef1a4f281215c7f9.tar.bz2
Rename HDexit() and related to exit(), etc. (#3202)
* HDatexit * HDexit * HD_exit
Diffstat (limited to 'tools/test/h5format_convert/h5fc_chk_idx.c')
-rw-r--r--tools/test/h5format_convert/h5fc_chk_idx.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/test/h5format_convert/h5fc_chk_idx.c b/tools/test/h5format_convert/h5fc_chk_idx.c
index ffa3327..49fbbab 100644
--- a/tools/test/h5format_convert/h5fc_chk_idx.c
+++ b/tools/test/h5format_convert/h5fc_chk_idx.c
@@ -51,7 +51,7 @@ main(int argc, char *argv[])
/* h5fc_chk_idx fname dname */
if (argc != 3) {
usage();
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Duplicate the file name & dataset name */
@@ -61,39 +61,39 @@ main(int argc, char *argv[])
/* Try opening the file */
if ((fid = h5tools_fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT, FALSE, NULL, (size_t)0)) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to open the file\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Open the dataset */
if ((did = H5Dopen2(fid, dname, H5P_DEFAULT)) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to open the dataset\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Get the dataset's chunk indexing type */
if (H5Dget_chunk_index_type(did, &idx_type) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to get chunk index type for the dataset\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Close the dataset */
if (H5Dclose(did) < 0) {
fprintf(stderr, "h5fc_chk_idx: unable to close the dataset\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Close the file */
if (H5Fclose(fid) < 0) {
fprintf(stderr, "h5fc_chk_idx_type: cannot close the file\n");
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
/* Return success when the chunk indexing type is version 1 B-tree */
if (idx_type == H5D_CHUNK_IDX_BTREE)
- HDexit(EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
else {
fprintf(stderr, "Error: chunk indexing type is %d\n", idx_type);
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
} /* end if */
} /* main() */