diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-09-02 15:08:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-09-10 09:09:46 +1000 |
commit | 52df92a563980a7af0fb61248da3654bd90e8232 (patch) | |
tree | 2ec95ea717c441339edb5a23ab6ff52293803a3c | |
parent | 824e970c5cc94fc7d5fe5f78a24d0d3057d87a84 (diff) |
xfree86: move XI_VERIFY_VALUATORS to the source file it's used in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com>
-rw-r--r-- | hw/xfree86/common/xf86Xinput.c | 8 | ||||
-rw-r--r-- | 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; |