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/lib/h5trav_table.c | |
parent | f02a3bd46d1688345dfc11e2179098c2b504b70a (diff) | |
download | hdf5-8040a0f38168981415a3350bc7baa01a6d6409b8.zip hdf5-8040a0f38168981415a3350bc7baa01a6d6409b8.tar.gz hdf5-8040a0f38168981415a3350bc7baa01a6d6409b8.tar.bz2 |
[svn-r12928] code revision
Diffstat (limited to 'tools/lib/h5trav_table.c')
-rw-r--r-- | tools/lib/h5trav_table.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/lib/h5trav_table.c b/tools/lib/h5trav_table.c index 2ebcd6b..5fb8c75 100644 --- a/tools/lib/h5trav_table.c +++ b/tools/lib/h5trav_table.c @@ -32,7 +32,7 @@ int trav_table_search(haddr_t objno, trav_table_t *table ) { - int i; + unsigned int i; for (i = 0; i < table->nobjs; i++) if (table->objs[i].objno == objno) @@ -61,7 +61,7 @@ void trav_table_add(haddr_t objno, H5G_obj_t type, trav_table_t *table) { - int i; + unsigned int i; if (table->nobjs == table->size) { table->size *= 2; @@ -110,7 +110,7 @@ void trav_table_addflags(unsigned *flags, H5G_obj_t type, trav_table_t *table) { - int i; + unsigned int i; if (table->nobjs == table->size) { table->size *= 2; @@ -157,7 +157,7 @@ void trav_table_addflags(unsigned *flags, void trav_table_init( trav_table_t **tbl ) { - int i; + unsigned int i; trav_table_t* table = (trav_table_t*) HDmalloc(sizeof(trav_table_t)); table->size = 20; @@ -197,7 +197,7 @@ void trav_table_init( trav_table_t **tbl ) void trav_table_free( trav_table_t *table ) { - int i, j; + unsigned int i, j; for ( i = 0; i < table->nobjs; i++) { @@ -234,14 +234,14 @@ void trav_table_addlink(trav_table_t *table, int j /* the object index */, char *path ) { - int k; + unsigned int k; /* already inserted */ if (strcmp(table->objs[j].name,path)==0) return; /* allocate space if necessary */ - if (table->objs[j].nlinks == table->objs[j].sizelinks) { + if (table->objs[j].nlinks == (unsigned)table->objs[j].sizelinks) { table->objs[j].sizelinks += 2; table->objs[j].links = (trav_link_t*)HDrealloc(table->objs[j].links, |