summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-04-18 14:05:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-04-18 14:05:38 (GMT)
commitef9c40754bdf5b5be1bb92e632da5e17a8d6913c (patch)
treed7066aba588261134019b8e02f381bf4f84d38ca /tools/h5dump/h5dump.c
parent139af5a5177697500b022482dddbf218a420d417 (diff)
downloadhdf5-ef9c40754bdf5b5be1bb92e632da5e17a8d6913c.zip
hdf5-ef9c40754bdf5b5be1bb92e632da5e17a8d6913c.tar.gz
hdf5-ef9c40754bdf5b5be1bb92e632da5e17a8d6913c.tar.bz2
[svn-r5200] Purpose:
Code Cleanup Description: Clean up compiler warnings from the last bunch of checkins Platforms tested: FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r--tools/h5dump/h5dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index ceb86d4..4667e72 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -17,7 +17,7 @@ static const char *progname = "h5dump";
static int d_status = EXIT_SUCCESS;
static int unamedtype = 0; /* shared data type with no name */
-static int prefix_len = 1024;
+static size_t prefix_len = 1024;
static table_t *group_table = NULL, *dset_table = NULL, *type_table = NULL;
static char *prefix;
static const char *driver = NULL; /* The driver to open the file with. */
@@ -1377,7 +1377,7 @@ dump_all(hid_t group, const char *name, void * op_data)
d_status = EXIT_FAILURE;
ret = FAIL;
} else {
- int new_len = strlen(prefix) + strlen(name) + 2;
+ size_t new_len = strlen(prefix) + strlen(name) + 2;
if (prefix_len <= new_len) {
prefix_len = new_len + 1;
@@ -2247,7 +2247,7 @@ handle_groups(hid_t fid, char *group, void * UNUSED data)
dump_header_format->groupblockend);
d_status = EXIT_FAILURE;
} else {
- int new_len = strlen(group) + 1;
+ size_t new_len = strlen(group) + 1;
if (prefix_len <= new_len) {
prefix_len = new_len;