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

Alexandre Julliard julliard at winehq.org
Fri Nov 8 10:36:49 CST 2013


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Nov  7 21:47:31 2013 +0100

dinput: Use BOOL type where appropriate.

---

 dlls/dinput/effect_linuxinput.c   |    2 +-
 dlls/dinput/joystick_linuxinput.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c
index da1fb85..3f17217 100644
--- a/dlls/dinput/effect_linuxinput.c
+++ b/dlls/dinput/effect_linuxinput.c
@@ -57,7 +57,7 @@ struct LinuxInputEffectImpl
 
     struct ff_effect    effect; /* Effect data */
     int                 gain;   /* Effect gain */
-    int                 first_axis_is_x;
+    BOOL                first_axis_is_x;
     int*                fd;     /* Parent device */
     struct list        *entry;  /* Entry into the parent's list of effects */
 };
diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c
index 559f181..951690d 100644
--- a/dlls/dinput/joystick_linuxinput.c
+++ b/dlls/dinput/joystick_linuxinput.c
@@ -184,7 +184,7 @@ static void find_joydevs(void)
         char buf[MAX_PATH];
         struct JoyDev joydev = {0};
         int fd;
-        int no_ff_check = 0;
+        BOOL no_ff_check = FALSE;
         int j;
         struct JoyDev *new_joydevs;
         struct input_id device_id = {0};
@@ -194,7 +194,7 @@ static void find_joydevs(void)
         if ((fd = open(buf, O_RDWR)) == -1)
         {
             fd = open(buf, O_RDONLY);
-            no_ff_check = 1;
+            no_ff_check = TRUE;
         }
 
         if (fd == -1)




More information about the wine-cvs mailing list