summaryrefslogtreecommitdiffstats
path: root/test/accum.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2013-11-19 23:00:19 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2013-11-19 23:00:19 (GMT)
commit9dfe3e854f023fb2351cdd014c1954297e9fd921 (patch)
treefbe8d544de76a35a7b46b2733ebdae20f8007b33 /test/accum.c
parent612faec1aceceb595c77da52b092b7683581e776 (diff)
downloadhdf5-9dfe3e854f023fb2351cdd014c1954297e9fd921.zip
hdf5-9dfe3e854f023fb2351cdd014c1954297e9fd921.tar.gz
hdf5-9dfe3e854f023fb2351cdd014c1954297e9fd921.tar.bz2
[svn-r24457] Bring revisions #24333 - #24432 from trunk to revise_chunks.
h5committested.
Diffstat (limited to 'test/accum.c')
-rw-r--r--test/accum.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/accum.c b/test/accum.c
index 1a218c6..fc7546d 100644
--- a/test/accum.c
+++ b/test/accum.c
@@ -1670,9 +1670,9 @@ test_random_write(void)
unsigned u; /* Local index variable */
/* Allocate space for the write & read buffers */
- wbuf = (uint8_t *)malloc((size_t)RANDOM_BUF_SIZE);
+ wbuf = (uint8_t *)HDmalloc((size_t)RANDOM_BUF_SIZE);
HDassert(wbuf);
- rbuf = (uint8_t *)calloc((size_t)RANDOM_BUF_SIZE, (size_t)1);
+ rbuf = (uint8_t *)HDcalloc((size_t)RANDOM_BUF_SIZE, 1);
HDassert(rbuf);
/* Initialize write buffer */
@@ -1690,9 +1690,9 @@ HDfprintf(stderr, "Random # seed was: %u\n", seed);
HDsrandom(seed);
/* Allocate space for the segment length buffer */
- off = (size_t *)malloc(MAX_RANDOM_SEGMENTS * sizeof(size_t));
+ off = (size_t *)HDmalloc(MAX_RANDOM_SEGMENTS * sizeof(size_t));
HDassert(off);
- len = (size_t *)malloc(MAX_RANDOM_SEGMENTS * sizeof(size_t));
+ len = (size_t *)HDmalloc(MAX_RANDOM_SEGMENTS * sizeof(size_t));
HDassert(len);
/* Randomly choose lengths of segments */