summaryrefslogtreecommitdiffstats
path: root/test/stab.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-31 00:13:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-31 00:13:27 (GMT)
commitbcda3c2dbfd1d7b1fa5e018dfa193ba499ac661d (patch)
treeb72d46ee0babd2aabd0a34387162b8a0d6c8e09d /test/stab.c
parent3f69573f575390295536c0faa6d083c58a7291fa (diff)
downloadhdf5-bcda3c2dbfd1d7b1fa5e018dfa193ba499ac661d.zip
hdf5-bcda3c2dbfd1d7b1fa5e018dfa193ba499ac661d.tar.gz
hdf5-bcda3c2dbfd1d7b1fa5e018dfa193ba499ac661d.tar.bz2
[svn-r12833] Description:
Clean up more warnings... Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'test/stab.c')
-rw-r--r--test/stab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/stab.c b/test/stab.c
index 9fc0565..dcb3f3a 100644
--- a/test/stab.c
+++ b/test/stab.c
@@ -187,11 +187,11 @@ test_long(hid_t fapl, hbool_t new_format)
if((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) TEST_ERROR
/* Group names */
- name1 = HDmalloc(LONG_NAME_LEN);
+ name1 = HDmalloc((size_t)LONG_NAME_LEN);
for(i = 0; i < LONG_NAME_LEN; i++)
name1[i] = (char)('A' + i%26);
name1[LONG_NAME_LEN - 1] = '\0';
- name2 = HDmalloc((2 * LONG_NAME_LEN) + 2);
+ name2 = HDmalloc((size_t)((2 * LONG_NAME_LEN) + 2));
sprintf(name2, "%s/%s", name1, name1);
/* Create groups */
@@ -221,8 +221,8 @@ error:
H5Gclose(g1);
H5Gclose(g2);
H5Fclose(fid);
- H5MM_xfree(name2);
- H5MM_xfree(name1);
+ HDfree(name2);
+ HDfree(name1);
} H5E_END_TRY;
return 1;
} /* end test_long() */