summaryrefslogtreecommitdiffstats
path: root/test/tarray.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-23 20:40:14 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-23 20:40:14 (GMT)
commite40557304fcfc662bb1a445abca516ee4b246d94 (patch)
treec9f1692443a62e0c481c7c0278e39d7b83d1b419 /test/tarray.c
parent1062b4f9d7080a3e439df7d3d527aee43f96d085 (diff)
downloadhdf5-e40557304fcfc662bb1a445abca516ee4b246d94.zip
hdf5-e40557304fcfc662bb1a445abca516ee4b246d94.tar.gz
hdf5-e40557304fcfc662bb1a445abca516ee4b246d94.tar.bz2
[svn-r12803] Description:
Finish new version of the I/O pipeline message, which is much smaller than the previous version. This version is used with the "use the latest version of the format" flag. Closed several memory leaks/overruns (found with valgrind). Also, lots of compiler & formatting cleanups. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'test/tarray.c')
-rw-r--r--test/tarray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tarray.c b/test/tarray.c
index 14dfcd8..44deb02 100644
--- a/test/tarray.c
+++ b/test/tarray.c
@@ -215,7 +215,7 @@ test_array_funcs(void)
norm=H5Tget_norm(type);
CHECK(norm, FAIL, "H5Tget_norm");
- ret=H5Tset_offset(type, 16);
+ ret=H5Tset_offset(type, (size_t)16);
CHECK(ret, FAIL, "H5Tset_offset");
H5E_BEGIN_TRY {
@@ -1579,7 +1579,7 @@ test_array_bkg(void)
/* Initialize the names of data members */
/* ------------------------------------ */
for (i = 0; i < dtsinfo.nsubfields; i++)
- dtsinfo.name[i] = (char *)calloc(20, sizeof(char));
+ dtsinfo.name[i] = (char *)HDcalloc((size_t)20, sizeof(char));
strcpy(dtsinfo.name[0], "One");
strcpy(dtsinfo.name[1], "Two");