summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-03-24 17:21:42 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-03-24 17:21:42 (GMT)
commitf960ff573ea4d7c324be7a392f0b0c85bc796030 (patch)
tree9ad7d7baac484f4feccd6586fd5cc7e4beeead97 /perform/zip_perf.c
parentb2120ac99316bc065a13e1ae3411eb968663a2f8 (diff)
downloadhdf5-f960ff573ea4d7c324be7a392f0b0c85bc796030.zip
hdf5-f960ff573ea4d7c324be7a392f0b0c85bc796030.tar.gz
hdf5-f960ff573ea4d7c324be7a392f0b0c85bc796030.tar.bz2
[svn-r20312] Change incorrect use of "struct stat" to use "h5_stat_t".
Also removed includes from top of file - they are included with proper config checks in h5private.h. Changed name of Windows only gettimeofday function to avoid a define loop according to VS2008 Tested: local linux, windows
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r--perform/zip_perf.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 08177d8..5e035f3 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -21,20 +21,6 @@
* -1 to -9 : compression level
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <math.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#ifdef H5_HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
/* our header files */
#include "h5test.h"
#include "h5tools_utils.h"
@@ -430,7 +416,7 @@ static void
fill_with_random_data(Bytef *src, uLongf src_len)
{
register unsigned u;
- struct stat stat_buf;
+ h5_stat_t stat_buf;
if (stat("/dev/urandom", &stat_buf) == 0) {
uLongf len = src_len;