diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-17 20:34:14 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-17 20:34:14 (GMT) |
commit | 1208e94eff8223d5c68bd7d50c4b885df222122a (patch) | |
tree | e740ea0e3b23176f5e194d7e98def93ec33d5b0e /test | |
parent | 6f667500c1f163a7fd9cb15945078c3fef622ab1 (diff) | |
download | hdf5-1208e94eff8223d5c68bd7d50c4b885df222122a.zip hdf5-1208e94eff8223d5c68bd7d50c4b885df222122a.tar.gz hdf5-1208e94eff8223d5c68bd7d50c4b885df222122a.tar.bz2 |
[svn-r6296] Purpose:
Code cleanup
Description:
Reduce warnings on Windows
Platforms tested:
FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'test')
-rw-r--r-- | test/big.c | 12 | ||||
-rw-r--r-- | test/fillval.c | 2 |
2 files changed, 7 insertions, 7 deletions
@@ -79,12 +79,12 @@ is_sparse(void) int fd; h5_stat_t sb; - if ((fd=open("x.h5", O_RDWR|O_TRUNC|O_CREAT, 0666))<0) return 0; - if (lseek(fd, (off_t)(1024*1024), SEEK_SET)!=1024*1024) return 0; - if (5!=write(fd, "hello", 5)) return 0; - if (close(fd)<0) return 0; - if (stat("x.h5", &sb)<0) return 0; - if (unlink("x.h5")<0) return 0; + if ((fd=HDopen("x.h5", O_RDWR|O_TRUNC|O_CREAT, 0666))<0) return 0; + if (HDlseek(fd, (off_t)(1024*1024), SEEK_SET)!=1024*1024) return 0; + if (5!=HDwrite(fd, "hello", 5)) return 0; + if (HDclose(fd)<0) return 0; + if (HDstat("x.h5", &sb)<0) return 0; + if (HDunlink("x.h5")<0) return 0; #ifdef H5_HAVE_STAT_ST_BLOCKS return ((unsigned long)sb.st_blocks*512 < (unsigned long)sb.st_size); #else diff --git a/test/fillval.c b/test/fillval.c index d15bfc5..455b8ed 100644 --- a/test/fillval.c +++ b/test/fillval.c @@ -689,7 +689,7 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, (hssize_t)((size_t)(nelmts*sizeof(comp_datatype)))); buf_c = (comp_datatype*)calloc((size_t)nelmts,sizeof(comp_datatype)); for (i=0; i<nelmts; i++) { - buf_c[i].a = 1111.11; + buf_c[i].a = (float)1111.11; buf_c[i].x = 2222; buf_c[i].y = 3333.3333; buf_c[i].z = 'd'; |