Commit 423d6619 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

eject: Use BOOL type where appropriate.

parent 8e1fdb84
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(eject); WINE_DEFAULT_DEBUG_CHANNEL(eject);
/* options */ /* options */
static int unmount_only; static BOOL unmount_only;
static int eject_all; static BOOL eject_all;
/* wrapper for GetDriveTypeW */ /* wrapper for GetDriveTypeW */
static DWORD get_drive_type( WCHAR drive ) static DWORD get_drive_type( WCHAR drive )
...@@ -134,8 +134,8 @@ static void parse_options( int *argc, char *argv[] ) ...@@ -134,8 +134,8 @@ static void parse_options( int *argc, char *argv[] )
} }
for (opt = argv[i] + 1; *opt; opt++) switch(*opt) for (opt = argv[i] + 1; *opt; opt++) switch(*opt)
{ {
case 'a': eject_all = 1; break; case 'a': eject_all = TRUE; break;
case 'u': unmount_only = 1; break; case 'u': unmount_only = TRUE; break;
case 'h': usage(); break; case 'h': usage(); break;
default: default:
WINE_MESSAGE( "Unknown option -%c\n", *opt ); WINE_MESSAGE( "Unknown option -%c\n", *opt );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment