summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-01-15 10:10:20 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-01-19 14:39:45 +1300
commit5785072f2372249769b9d95b6c721ec0518c6f42 (patch)
tree1ee920b5a8d9e5a954d47f56a8d4ffab3aa7ea2e
parentb8a33d6c4737cb7bddc6ccc1f3e1a2b709452465 (diff)
xfree86: replace True/False with TRUE/FALSE.
xf86Xinput.c relied on xkbsrv.h's definition of True/False which seems odd at first and weird on second glance. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
-rw-r--r--hw/xfree86/common/xf86Xinput.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index df774a155..fb0ee9c3f 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -504,10 +504,10 @@ InputClassMatches(XF86ConfInputClassPtr iclass, InputAttributes *attrs)
{
if (iclass->match_product &&
(!attrs->product || !strstr(attrs->product, iclass->match_product)))
- return False;
+ return FALSE;
if (iclass->match_vendor &&
(!attrs->vendor || !strstr(attrs->vendor, iclass->match_vendor)))
- return False;
+ return FALSE;
if (iclass->match_device &&
#ifdef HAVE_FNMATCH_H
(!attrs->device ||
@@ -515,26 +515,26 @@ InputClassMatches(XF86ConfInputClassPtr iclass, InputAttributes *attrs)
#else
(!attrs->device || !strstr(attrs->device, iclass->match_device)))
#endif
- return False;
+ return FALSE;
if (iclass->is_keyboard.set &&
iclass->is_keyboard.val != !!(attrs->flags & ATTR_KEYBOARD))
- return False;
+ return FALSE;
if (iclass->is_pointer.set &&
iclass->is_pointer.val != !!(attrs->flags & ATTR_POINTER))
- return False;
+ return FALSE;
if (iclass->is_joystick.set &&
iclass->is_joystick.val != !!(attrs->flags & ATTR_JOYSTICK))
- return False;
+ return FALSE;
if (iclass->is_tablet.set &&
iclass->is_tablet.val != !!(attrs->flags & ATTR_TABLET))
- return False;
+ return FALSE;
if (iclass->is_touchpad.set &&
iclass->is_touchpad.val != !!(attrs->flags & ATTR_TOUCHPAD))
- return False;
+ return FALSE;
if (iclass->is_touchscreen.set &&
iclass->is_touchscreen.val != !!(attrs->flags & ATTR_TOUCHSCREEN))
- return False;
- return True;
+ return FALSE;
+ return TRUE;
}
/*