summaryrefslogtreecommitdiffstats
path: root/test/tfile.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/tfile.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/tfile.c')
-rw-r--r--test/tfile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/tfile.c b/test/tfile.c
index ebc666d..7e4ed01 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -1594,16 +1594,16 @@ test_file_getname(void)
CHECK(file_id, FAIL, "H5Fcreate");
/* Get and verify file name */
- name_len = H5Fget_name(file_id, name, TESTA_NAME_BUF_SIZE);
+ name_len = H5Fget_name(file_id, name, (size_t)TESTA_NAME_BUF_SIZE);
CHECK(name_len, FAIL, "H5Fget_name");
VERIFY_STR(name, FILE1, "H5Fget_name");
/* Create a group in the root group */
- group_id = H5Gcreate(file_id, TESTA_GROUPNAME, 0);
+ group_id = H5Gcreate(file_id, TESTA_GROUPNAME, (size_t)0);
CHECK(group_id, FAIL, "H5Gcreate");
/* Get and verify file name */
- name_len = H5Fget_name(group_id, name, TESTA_NAME_BUF_SIZE);
+ name_len = H5Fget_name(group_id, name, (size_t)TESTA_NAME_BUF_SIZE);
CHECK(name_len, FAIL, "H5Fget_name");
VERIFY_STR(name, FILE1, "H5Fget_name");
@@ -1614,7 +1614,7 @@ test_file_getname(void)
/* Try get file name from data space. Supposed to fail because
* it's illegal operation. */
H5E_BEGIN_TRY {
- name_len = H5Fget_name(space_id, name, TESTA_NAME_BUF_SIZE);
+ name_len = H5Fget_name(space_id, name, (size_t)TESTA_NAME_BUF_SIZE);
} H5E_END_TRY;
VERIFY(name_len, FAIL, "H5Fget_name");
@@ -1623,7 +1623,7 @@ test_file_getname(void)
CHECK(dataset_id, FAIL, "H5Dcreate");
/* Get and verify file name */
- name_len = H5Fget_name(dataset_id, name, TESTA_NAME_BUF_SIZE);
+ name_len = H5Fget_name(dataset_id, name, (size_t)TESTA_NAME_BUF_SIZE);
CHECK(name_len, FAIL, "H5Fget_name");
VERIFY_STR(name, FILE1, "H5Fget_name");
@@ -1632,7 +1632,7 @@ test_file_getname(void)
CHECK(attr_id, FAIL, "H5Acreate");
/* Get and verify file name */
- name_len = H5Fget_name(attr_id, name, TESTA_NAME_BUF_SIZE);
+ name_len = H5Fget_name(attr_id, name, (size_t)TESTA_NAME_BUF_SIZE);
CHECK(name_len, FAIL, "H5Fget_name");
VERIFY_STR(name, FILE1, "H5Fget_name");
@@ -1652,7 +1652,7 @@ test_file_getname(void)
CHECK(ret, FAIL, "H5Tcommit");
/* Get and verify file name */
- name_len = H5Fget_name(type_id, name, TESTA_NAME_BUF_SIZE);
+ name_len = H5Fget_name(type_id, name, (size_t)TESTA_NAME_BUF_SIZE);
CHECK(name_len, FAIL, "H5Fget_name");
VERIFY_STR(name, FILE1, "H5Fget_name");