summaryrefslogtreecommitdiffstats
path: root/test/vds_swmr_writer.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 /test/vds_swmr_writer.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 'test/vds_swmr_writer.c')
-rw-r--r--test/vds_swmr_writer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/vds_swmr_writer.c b/test/vds_swmr_writer.c
index 33f2a86..d5fa74b 100644
--- a/test/vds_swmr_writer.c
+++ b/test/vds_swmr_writer.c
@@ -43,11 +43,11 @@ main(int argc, char *argv[])
* This is an integer index into the FILE_NAMES array.
*/
if (argc != 2) {
- HDfprintf(stderr, "ERROR: Must pass the source file number on the command line.\n");
+ fprintf(stderr, "ERROR: Must pass the source file number on the command line.\n");
return EXIT_FAILURE;
}
- file_number = HDatoi(argv[1]);
+ file_number = atoi(argv[1]);
if (file_number < 0 || file_number >= N_SOURCES)
TEST_ERROR;
@@ -64,7 +64,7 @@ main(int argc, char *argv[])
/* Create a data buffer that represents a plane */
n_elements = PLANES[file_number][1] * PLANES[file_number][2];
- if (NULL == (buffer = (int *)HDmalloc(n_elements * sizeof(int))))
+ if (NULL == (buffer = (int *)malloc(n_elements * sizeof(int))))
TEST_ERROR;
/* Create the memory dataspace */
@@ -132,9 +132,9 @@ main(int argc, char *argv[])
TEST_ERROR;
if (H5Fclose(fid) < 0)
TEST_ERROR;
- HDfree(buffer);
+ free(buffer);
- HDfprintf(stderr, "SWMR writer exited successfully\n");
+ fprintf(stderr, "SWMR writer exited successfully\n");
return EXIT_SUCCESS;
error:
@@ -152,11 +152,11 @@ error:
if (fsid >= 0)
(void)H5Sclose(fsid);
if (buffer != NULL)
- HDfree(buffer);
+ free(buffer);
}
H5E_END_TRY
- HDfprintf(stderr, "ERROR: SWMR writer exited with errors\n");
+ fprintf(stderr, "ERROR: SWMR writer exited with errors\n");
return EXIT_FAILURE;
} /* end main */