diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-03-24 15:33:20 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-03-24 15:33:20 (GMT) |
commit | 2e84173af5257e1d1b2490633bad80dd47cd49e3 (patch) | |
tree | 1e8f6a08f305d1cbe36c672065c342b91f0ce323 /tools/h5jam/h5unjam.c | |
parent | 3b796613755cc14712eee241523df84737e6f03c (diff) | |
download | hdf5-2e84173af5257e1d1b2490633bad80dd47cd49e3.zip hdf5-2e84173af5257e1d1b2490633bad80dd47cd49e3.tar.gz hdf5-2e84173af5257e1d1b2490633bad80dd47cd49e3.tar.bz2 |
[svn-r20311] Change incorrect use of "struct stat" to use "h5_stat_t". On windows, this used the wrong structure and caused crashes. Also removed includes from top of file - they are included with proper config checks in h5private.h.
Tested: local linux, windows
Diffstat (limited to 'tools/h5jam/h5unjam.c')
-rw-r--r-- | tools/h5jam/h5unjam.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/h5jam/h5unjam.c b/tools/h5jam/h5unjam.c index fd79e1a..bfebc6c 100644 --- a/tools/h5jam/h5unjam.c +++ b/tools/h5jam/h5unjam.c @@ -13,15 +13,6 @@ * access to either file, you may request a copy from help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include <stdio.h> -#include <sys/types.h> -#include <fcntl.h> -#include <sys/stat.h> - -#ifdef H5_HAVE_UNISTD_H -#include <unistd.h> -#endif - #include "hdf5.h" #include "H5private.h" #include "h5tools_utils.h" @@ -177,7 +168,7 @@ main(int argc, const char *argv[]) herr_t status; hid_t plist; int res; - struct stat sbuf; + h5_stat_t sbuf; h5tools_setprogname(PROGRAMNAME); h5tools_setstatus(EXIT_SUCCESS); |