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>
This commit is contained in:
Peter Hutterer 2010-09-02 15:08:01 +10:00
parent 824e970c5c
commit 52df92a563
2 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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;