=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: eject: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Fri Nov 1 15:17:06 CDT 2013


Module: wine
Branch: master
Commit: 423d66195b29be310332154caf8d1e9523624e51
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=423d66195b29be310332154caf8d1e9523624e51

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Fri Nov  1 00:21:22 2013 +0100

eject: Use BOOL type where appropriate.

---

 programs/eject/eject.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/programs/eject/eject.c b/programs/eject/eject.c
index 02ff4ba..483ac21 100644
--- a/programs/eject/eject.c
+++ b/programs/eject/eject.c
@@ -33,8 +33,8 @@
 WINE_DEFAULT_DEBUG_CHANNEL(eject);
 
 /* options */
-static int unmount_only;
-static int eject_all;
+static BOOL unmount_only;
+static BOOL eject_all;
 
 /* wrapper for GetDriveTypeW */
 static DWORD get_drive_type( WCHAR drive )
@@ -134,8 +134,8 @@ static void parse_options( int *argc, char *argv[] )
         }
         for (opt = argv[i] + 1; *opt; opt++) switch(*opt)
         {
-        case 'a': eject_all = 1; break;
-        case 'u': unmount_only = 1; break;
+        case 'a': eject_all = TRUE; break;
+        case 'u': unmount_only = TRUE; break;
         case 'h': usage(); break;
         default:
             WINE_MESSAGE( "Unknown option -%c\n", *opt );




More information about the wine-cvs mailing list