summaryrefslogtreecommitdiffstats
path: root/tools/test/misc/clear_open_chk.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 20:43:30 (GMT)
committerGitHub <noreply@github.com>2023-07-27 20:43:30 (GMT)
commit1e91d96fa02466ffe451319bdac1005f84dc7993 (patch)
tree4de04ef502c313dfd766497b20235188761146c0 /tools/test/misc/clear_open_chk.c
parent95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff)
downloadhdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'tools/test/misc/clear_open_chk.c')
-rw-r--r--tools/test/misc/clear_open_chk.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/test/misc/clear_open_chk.c b/tools/test/misc/clear_open_chk.c
index 37e7307..ec86ec4 100644
--- a/tools/test/misc/clear_open_chk.c
+++ b/tools/test/misc/clear_open_chk.c
@@ -18,9 +18,9 @@ static void usage(void);
static void
usage(void)
{
- HDfprintf(stdout, "\n");
- HDfprintf(stdout, "Usage error!\n");
- HDfprintf(stdout, "Usage: clear_open_chk filename\n");
+ fprintf(stdout, "\n");
+ fprintf(stdout, "Usage error!\n");
+ fprintf(stdout, "Usage: clear_open_chk filename\n");
} /* usage() */
/*-------------------------------------------------------------------------
@@ -45,7 +45,7 @@ main(int argc, char *argv[])
/* Check the # of arguments */
if (argc != 2) {
usage();
- HDexit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
/* Get the file name */
@@ -53,18 +53,18 @@ 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) {
- HDfprintf(stderr, "clear_open_chk: unable to open the file\n");
- HDfree(fname);
- HDexit(EXIT_FAILURE);
+ fprintf(stderr, "clear_open_chk: unable to open the file\n");
+ free(fname);
+ exit(EXIT_FAILURE);
}
- HDfree(fname);
+ free(fname);
/* Close the file */
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "clear_open_chk: cannot close the file\n");
- HDexit(EXIT_FAILURE);
+ fprintf(stderr, "clear_open_chk: cannot close the file\n");
+ exit(EXIT_FAILURE);
}
/* Return success */
- HDexit(EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
} /* main() */