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 /tools | |
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 'tools')
-rw-r--r-- | tools/lib/h5tools.h | 2 | ||||
-rw-r--r-- | tools/misc/h5repart.c | 15 |
2 files changed, 9 insertions, 8 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h index eda4a39..7da13b6 100644 --- a/tools/lib/h5tools.h +++ b/tools/lib/h5tools.h @@ -394,7 +394,7 @@ typedef struct h5tools_context_t { int prev_multiline; /*was prev datum multiline? */ size_t prev_prefix_len;/*length of previous prefix */ int continuation; /*continuation of previous data?*/ - int size_last_dim; /*the size of the last dimension, + hsize_t size_last_dim; /*the size of the last dimension, *needed so we can break after each *row */ int indent_level; /*the number of times we need some diff --git a/tools/misc/h5repart.c b/tools/misc/h5repart.c index 4a28069..fccc378 100644 --- a/tools/misc/h5repart.c +++ b/tools/misc/h5repart.c @@ -196,7 +196,6 @@ main (int argc, char *argv[]) h5_stat_t sb; int verbose=FALSE; /*display file names? */ - size_t left_overs=0; /*amount of zeros left over */ const char *src_gen_name; /*general source name */ char src_name[NAMELEN]; /*source member name */ @@ -211,15 +210,17 @@ main (int argc, char *argv[]) #ifdef WIN32 - _int64 src_offset=0; /*offset in source member */ - _int64 dst_offset=0; /*offset in destination member */ - _int64 src_size; /*source logical member size */ + _int64 left_overs=0; /*amount of zeros left over */ + _int64 src_offset=0; /*offset in source member */ + _int64 dst_offset=0; /*offset in destination member */ + _int64 src_size; /*source logical member size */ _int64 src_act_size; /*source actual member size */ _int64 dst_size=1 GB; /*destination logical memb size */ #else - off_t src_offset=0; /*offset in source member */ - off_t dst_offset=0; /*offset in destination member */ - off_t src_size; /*source logical member size */ + off_t left_overs=0; /*amount of zeros left over */ + off_t src_offset=0; /*offset in source member */ + off_t dst_offset=0; /*offset in destination member */ + off_t src_size; /*source logical member size */ off_t src_act_size; /*source actual member size */ off_t dst_size=1 GB; /*destination logical memb size */ #endif |