summaryrefslogtreecommitdiffstats
path: root/perform/overhead.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-17 20:34:14 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-17 20:34:14 (GMT)
commit1208e94eff8223d5c68bd7d50c4b885df222122a (patch)
treee740ea0e3b23176f5e194d7e98def93ec33d5b0e /perform/overhead.c
parent6f667500c1f163a7fd9cb15945078c3fef622ab1 (diff)
downloadhdf5-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 'perform/overhead.c')
-rw-r--r--perform/overhead.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/perform/overhead.c b/perform/overhead.c
index 9edacc9..0066255 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -229,7 +229,7 @@ test(fill_t fill_style, const double splits[],
/*
workaround for a bug in the Metrowerks version 6.0 open function
*/
- if ((fd=open(FILE_NAME_1, O_RDONLY))<0) goto error;
+ if ((fd=HDopen(FILE_NAME_1, O_RDONLY, 0666))<0) goto error;
#endif
for (i=1; i<=cur_size[0]; i++) {
@@ -246,11 +246,11 @@ test(fill_t fill_style, const double splits[],
hs_start[0] = i%2 ? i/2 : cur_size[0]-i/2;
break;
case FILL_OUTWARD:
- j = (cur_size[0]-i)+1;
+ j = (int)(cur_size[0]-i)+1;
hs_start[0] = j%2 ? j/2 : (hssize_t)cur_size[0]-j/2;
break;
case FILL_RANDOM:
- for (j=rand()%cur_size[0]; had[j]; j=(j+1)%cur_size[0]) /*void*/;
+ for (j=HDrand()%(int)cur_size[0]; had[j]; j=(j+1)%(int)cur_size[0]) /*void*/;
hs_start[0] = j;
had[j] = 1;
break;
@@ -326,7 +326,7 @@ test(fill_t fill_style, const double splits[],
#if !defined( __MWERKS__)
- close(fd);
+ HDclose(fd);
#endif
return 0;
@@ -339,7 +339,7 @@ test(fill_t fill_style, const double splits[],
H5Pclose(xfer);
H5Fclose(file);
free(had);
- close(fd);
+ HDclose(fd);
return 1;
}