From 52df92a563980a7af0fb61248da3654bd90e8232 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 2 Sep 2010 15:08:01 +1000 Subject: [PATCH] xfree86: move XI_VERIFY_VALUATORS to the source file it's used in. Signed-off-by: Peter Hutterer Reviewed-by: Tiago Vignatti --- hw/xfree86/common/xf86Xinput.c | 8 ++++++++ hw/xfree86/common/xf86Xinput.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index e225caa7a..4de6c78fe 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -89,6 +89,14 @@ #include "xkbsrv.h" +/* Valuator verification macro */ +#define XI_VERIFY_VALUATORS(num_valuators) \ + if (num_valuators > MAX_VALUATORS) { \ + xf86Msg(X_ERROR, "%s: num_valuator %d is greater than" \ + " MAX_VALUATORS\n", __FUNCTION__, num_valuators); \ + return; \ + } + EventListPtr xf86Events = NULL; diff --git a/hw/xfree86/common/xf86Xinput.h b/hw/xfree86/common/xf86Xinput.h index 7d3f3e202..af7e8c107 100644 --- a/hw/xfree86/common/xf86Xinput.h +++ b/hw/xfree86/common/xf86Xinput.h @@ -63,14 +63,6 @@ /* the device sends Xinput and core pointer events */ #define XI86_SEND_CORE_EVENTS XI86_ALWAYS_CORE -/* Valuator verification macro */ -#define XI_VERIFY_VALUATORS(num_valuators) \ - if (num_valuators > MAX_VALUATORS) { \ - xf86Msg(X_ERROR, "%s: num_valuator %d is greater than" \ - " MAX_VALUATORS\n", __FUNCTION__, num_valuators); \ - return; \ - } - /* This holds the input driver entry and module information. */ typedef struct _InputDriverRec { int driverVersion;