summaryrefslogtreecommitdiffstats
path: root/tools/lib
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/lib
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/lib')
-rw-r--r--tools/lib/h5tools_utils.c4
-rw-r--r--tools/lib/h5tools_utils.h2
2 files changed, 3 insertions, 3 deletions
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__ */