diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5dump/h5dump.c | 6 | ||||
-rw-r--r-- | tools/h5ls/h5ls.c | 2 | ||||
-rw-r--r-- | tools/lib/h5tools_utils.c | 4 | ||||
-rw-r--r-- | tools/lib/h5tools_utils.h | 2 |
4 files changed, 7 insertions, 7 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; diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index 5fd7df6..35f5f75 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -709,7 +709,7 @@ display_cmpd_type(hid_t type, int ind) char *name=NULL; /*member name */ size_t size; /*total size of type in bytes */ hid_t subtype; /*member data type */ - int i, j, n; /*miscellaneous counters */ + int i, n; /*miscellaneous counters */ if (H5T_COMPOUND!=H5Tget_class(type)) return FALSE; diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index f7306a7..e96ad99 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -337,10 +337,10 @@ init_table(table_t **tbl) *------------------------------------------------------------------------- */ void -init_prefix(char **prefix, int prefix_len) +init_prefix(char **prefix, size_t prefix_len) { assert(prefix_len > 0); - *prefix = HDcalloc((size_t)prefix_len, 1); + *prefix = HDcalloc(prefix_len, 1); } diff --git a/tools/lib/h5tools_utils.h b/tools/lib/h5tools_utils.h index bb47c94..1ace7ad 100644 --- a/tools/lib/h5tools_utils.h +++ b/tools/lib/h5tools_utils.h @@ -109,6 +109,6 @@ extern char *get_objectname(table_t*, int); extern herr_t find_objs(hid_t group, const char *name, void *op_data); extern int search_obj(table_t *temp, unsigned long *); extern void init_table(table_t **tbl); -extern void init_prefix(char **temp, int); +extern void init_prefix(char **temp, size_t); #endif /* H5TOOLS_UTILS_H__ */ |