summaryrefslogtreecommitdiffstats
path: root/test/mdset.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/mdset.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/mdset.c')
-rw-r--r--test/mdset.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/mdset.c b/test/mdset.c
index 06e7af2..fc022e2 100644
--- a/test/mdset.c
+++ b/test/mdset.c
@@ -83,7 +83,7 @@ test_mdset_location(hid_t fapl_id)
if ((file_id2 = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl_id)) < 0)
TEST_ERROR;
- if (NULL == (buf = (int *)HDcalloc(2 * MAX_DSET_X * MAX_DSET_Y, sizeof(int))))
+ if (NULL == (buf = (int *)calloc(2 * MAX_DSET_X * MAX_DSET_Y, sizeof(int))))
TEST_ERROR;
/* Generate memory dataspace */
@@ -224,13 +224,13 @@ test_mdset(size_t niter, unsigned flags, hid_t fapl_id)
dcpl_id[i] = -1;
/* Allocate buffers */
- if (NULL == (rbuf = (unsigned *)HDmalloc(buf_size)))
+ if (NULL == (rbuf = (unsigned *)malloc(buf_size)))
TEST_ERROR;
- if (NULL == (erbuf = (unsigned *)HDmalloc(buf_size)))
+ if (NULL == (erbuf = (unsigned *)malloc(buf_size)))
TEST_ERROR;
- if (NULL == (wbuf = (unsigned *)HDmalloc(buf_size)))
+ if (NULL == (wbuf = (unsigned *)malloc(buf_size)))
TEST_ERROR;
- if (NULL == (efbuf = (unsigned *)HDmalloc(buf_size)))
+ if (NULL == (efbuf = (unsigned *)malloc(buf_size)))
TEST_ERROR;
/* Initialize buffer indices */
@@ -378,8 +378,8 @@ test_mdset(size_t niter, unsigned flags, hid_t fapl_id)
} /* end for */
/* Initialize read buffer and expected read buffer */
- (void)HDmemset(rbuf, 0, buf_size);
- (void)HDmemset(erbuf, 0, buf_size);
+ (void)memset(rbuf, 0, buf_size);
+ (void)memset(erbuf, 0, buf_size);
/* Initialize write buffer */
for (j = 0; j < max_dsets; j++)
@@ -388,7 +388,7 @@ test_mdset(size_t niter, unsigned flags, hid_t fapl_id)
wbufi[j][k][l] = (unsigned)((j * MAX_DSET_X * MAX_DSET_Y) + (k * MAX_DSET_Y) + l);
/* Initialize expected file buffer */
- (void)HDmemset(efbuf, 0, buf_size);
+ (void)memset(efbuf, 0, buf_size);
/* Perform read/write operations */
for (j = 0; j < OPS_PER_FILE; j++) {