diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-11-16 20:38:05 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-11-16 20:38:05 (GMT) |
commit | 8040a0f38168981415a3350bc7baa01a6d6409b8 (patch) | |
tree | d54770148ac9da19970cb1fe38706e36240af9e5 /tools/h5repack/h5repack_opttable.c | |
parent | f02a3bd46d1688345dfc11e2179098c2b504b70a (diff) | |
download | hdf5-8040a0f38168981415a3350bc7baa01a6d6409b8.zip hdf5-8040a0f38168981415a3350bc7baa01a6d6409b8.tar.gz hdf5-8040a0f38168981415a3350bc7baa01a6d6409b8.tar.bz2 |
[svn-r12928] code revision
Diffstat (limited to 'tools/h5repack/h5repack_opttable.c')
-rw-r--r-- | tools/h5repack/h5repack_opttable.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/h5repack/h5repack_opttable.c b/tools/h5repack/h5repack_opttable.c index a0b1698..c77837e 100644 --- a/tools/h5repack/h5repack_opttable.c +++ b/tools/h5repack/h5repack_opttable.c @@ -122,7 +122,7 @@ static void aux_tblinsert_layout(pack_opttbl_t *table, static int aux_inctable(pack_opttbl_t *table, int n_objs ) { - int i; + unsigned int i; table->size += n_objs; table->objs = (pack_info_t*)realloc(table->objs, table->size * sizeof(pack_info_t)); @@ -149,7 +149,7 @@ static int aux_inctable(pack_opttbl_t *table, int n_objs ) int options_table_init( pack_opttbl_t **tbl ) { - int i; + unsigned int i; pack_opttbl_t* table = (pack_opttbl_t*) malloc(sizeof(pack_opttbl_t)); if (table==NULL) { error_msg(progname, "not enough memory for options table\n"); @@ -206,7 +206,8 @@ int options_add_layout( obj_list_t *obj_list, pack_info_t *pack, pack_opttbl_t *table ) { - int i, j, I, added=0, found=0; + unsigned int i; + int j, I, added=0, found=0; /* increase the size of the collection by N_OBJS if necessary */ if (table->nelems+n_objs >= table->size) @@ -304,7 +305,8 @@ int options_add_filter(obj_list_t *obj_list, pack_opttbl_t *table ) { - int i, j, I, added=0, found=0; + unsigned int i; + int j, I, added=0, found=0; /* increase the size of the collection by N_OBJS if necessary */ if (table->nelems+n_objs >= table->size) @@ -387,7 +389,7 @@ int options_add_filter(obj_list_t *obj_list, pack_info_t* options_get_object( const char *path, pack_opttbl_t *table ) { - int i; + unsigned int i; for ( i = 0; i < table->nelems; i++) { |