summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_utils.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-19 13:06:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-19 13:06:57 (GMT)
commit6d7cbd13dce1ae24446ed84a88c64c68598dc6bf (patch)
tree9debd9624be08fb8ff72f91e2416ae853939e2fc /tools/lib/h5tools_utils.c
parenta00188dde45dfd59728e1e68ddbf6cad5e1d014c (diff)
downloadhdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.zip
hdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.tar.gz
hdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.tar.bz2
[svn-r5668] Purpose:
Code cleanup Description: Turn on more warnings in the IRIX builds and clean them up. Platforms tested: IRIX64 6.5 (modi4) w/parallel, both -n32 and the default (-64?) mode
Diffstat (limited to 'tools/lib/h5tools_utils.c')
-rw-r--r--tools/lib/h5tools_utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index e7de960..c92fcfd 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -352,10 +352,9 @@ 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);
}