Module: wine Branch: master Commit: a24081a70382741e682c26e65c6fff51b69973bf URL: http://source.winehq.org/git/wine.git/?a=commit;h=a24081a70382741e682c26e65c...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Fri Nov 1 00:21:26 2013 +0100
msiexec: Use BOOL type where appropriate.
---
programs/msiexec/msiexec.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index 1b688a5..e76b526 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -422,11 +422,12 @@ static int chomp( WCHAR *str ) { enum chomp_state state = cs_token; WCHAR *p, *out; - int count = 1, ignore; + int count = 1; + BOOL ignore;
for( p = str, out = str; *p; p++ ) { - ignore = 1; + ignore = TRUE; switch( state ) { case cs_whitespace: @@ -440,7 +441,7 @@ static int chomp( WCHAR *str ) break; default: count++; - ignore = 0; + ignore = FALSE; state = cs_token; } break; @@ -456,7 +457,7 @@ static int chomp( WCHAR *str ) *out++ = 0; break; default: - ignore = 0; + ignore = FALSE; } break;
@@ -467,7 +468,7 @@ static int chomp( WCHAR *str ) state = cs_token; break; default: - ignore = 0; + ignore = FALSE; } break; }