From 754e7b40b986e53a6060acdedb2d445e2ad1b8b9 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 29 Dec 2003 14:02:05 -0500 Subject: [svn-r7989] Purpose: Code cleanup Description: Switch 'malloc()' to 'HDmalloc()' in a bunch of places. Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest --- test/tvltypes.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/tvltypes.c b/test/tvltypes.c index 36fa524..63c3c8e 100644 --- a/test/tvltypes.c +++ b/test/tvltypes.c @@ -194,7 +194,7 @@ test_vltypes_vlen_atomic(void) /* Allocate and initialize VL data to write */ for(i=0; ip=malloc((j+L2_INCM)*sizeof(unsigned int)); + t1->p=HDmalloc((j+L2_INCM)*sizeof(unsigned int)); t1->len=j+L2_INCM; for(k=0; kp)[k] = i*100 + j*10 + k; @@ -1145,7 +1145,7 @@ test_vltypes_compound_vlen_atomic(void) for(i=0; ip=malloc((j+1)*sizeof(unsigned int)); + t1->p=HDmalloc((j+1)*sizeof(unsigned int)); if(t1->p==NULL) { printf("Cannot allocate memory for VL data! i=%u, j=%u\n",i,j); num_errs++; @@ -1741,7 +1741,7 @@ rewrite_longer_vltypes_vlen_vlen_atomic(void) /* Allocate and initialize VL data to write */ for(i=0; ip=malloc((j+1)*sizeof(unsigned int)); + t1->p=HDmalloc((j+1)*sizeof(unsigned int)); if(t1->p==NULL) { printf("Cannot allocate memory for VL data! i=%u, j=%u\n",i,j); num_errs++; @@ -1922,7 +1922,7 @@ rewrite_shorter_vltypes_vlen_vlen_atomic(void) /* Allocate and initialize VL data to write */ for(i=0; ip=malloc((j+1)*sizeof(unsigned int)); + t1->p=HDmalloc((j+1)*sizeof(unsigned int)); if(t1->p==NULL) { printf("Cannot allocate memory for VL data! i=%u, j=%u\n",i,j); num_errs++; -- cgit v0.12