dlls/msi/table.c -- adjust types of loop variables
Gerald Pfeifer
gerald at pfeifer.com
Thu Jan 3 15:56:39 CST 2008
Five or so warnings gone (with -Wextra, for example)...
Gerald
ChangeLog:
Adjust the types of loop variables.
Index: dlls/msi/table.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/table.c,v
retrieving revision 1.136
diff -u -3 -p -r1.136 table.c
--- dlls/msi/table.c 2 Jan 2008 13:36:10 -0000 1.136
+++ dlls/msi/table.c 3 Jan 2008 21:54:54 -0000
@@ -481,7 +481,7 @@ end:
static void free_table( MSITABLE *table )
{
- int i;
+ UINT i;
for( i=0; i<table->row_count; i++ )
msi_free( table->data[i] );
msi_free( table->data );
@@ -1050,7 +1050,7 @@ static void msi_update_table_columns( MS
{
MSITABLE *table;
UINT size, offset, old_count;
- int n;
+ UINT n;
table = find_cached_table( db, name );
old_count = table->col_count;
@@ -1778,7 +1778,7 @@ static UINT TABLE_find_matching_rows( st
static UINT TABLE_add_ref(struct tagMSIVIEW *view)
{
MSITABLEVIEW *tv = (MSITABLEVIEW*)view;
- int i;
+ UINT i;
TRACE("%p %d\n", view, tv->table->ref_count);
@@ -1829,8 +1829,7 @@ static UINT TABLE_release(struct tagMSIV
{
MSITABLEVIEW *tv = (MSITABLEVIEW*)view;
INT ref = tv->table->ref_count;
- int i;
- UINT r;
+ UINT i, r;
TRACE("%p %d\n", view, ref);
More information about the wine-patches
mailing list