diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-11-17 22:00:15 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-11-17 22:00:15 (GMT) |
commit | 9648d22f5f387640de8140acd7d2193bcd6770ad (patch) | |
tree | 20905fda3ba2ecf9259c0cc9c4ef0658a79ad903 /test/h5test.c | |
parent | 9e014467b62df66322de63e21be565ed59a079b3 (diff) | |
download | hdf5-9648d22f5f387640de8140acd7d2193bcd6770ad.zip hdf5-9648d22f5f387640de8140acd7d2193bcd6770ad.tar.gz hdf5-9648d22f5f387640de8140acd7d2193bcd6770ad.tar.bz2 |
[svn-r1837] Cleaned up a few warnings from the SGI compiler.
Diffstat (limited to 'test/h5test.c')
-rw-r--r-- | test/h5test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/h5test.c b/test/h5test.c index 13ea124..04f7de0 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -116,7 +116,7 @@ h5_cleanup(hid_t fapl) } else if (H5FD_MULTI==driver) { H5FD_mem_t mt; assert(strlen(multi_letters)==H5FD_MEM_NTYPES); - for (mt=0; mt<H5FD_MEM_NTYPES; mt++) { + for (mt=H5FD_MEM_DEFAULT; mt<H5FD_MEM_NTYPES; mt++) { HDsnprintf(temp, sizeof temp, "%s-%c.h5", filename, multi_letters[mt]); remove(temp); /*don't care if it fails*/ @@ -212,7 +212,7 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size) /* Prepend the prefix value to the base name */ if (prefix && *prefix) { - if (HDsnprintf(fullname, size, "%s/%s", prefix, base_name)==(int)size) { + if (HDsnprintf(fullname, (long)size, "%s/%s", prefix, base_name)==(int)size) { return NULL; /*buffer is too small*/ } } else if (strlen(base_name)>=size) { @@ -310,7 +310,7 @@ h5_fileaccess(void) memset(memb_addr, 0, sizeof memb_addr); assert(strlen(multi_letters)==H5FD_MEM_NTYPES); - for (mt=0; mt<H5FD_MEM_NTYPES; mt++) { + for (mt=H5FD_MEM_DEFAULT; mt<H5FD_MEM_NTYPES; mt++) { memb_fapl[mt] = H5P_DEFAULT; sprintf(sv[mt], "%%s-%c.h5", multi_letters[mt]); memb_name[mt] = sv[mt]; |