From 605047613c534babf723f25597e8cc4be6758db0 Mon Sep 17 00:00:00 2001 From: Éric Brunet Date: Sat, 27 Sep 2014 22:06:36 +0200 Subject: Don't pass superfluous arguments to EvdevPost*Events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The functions EvdevPostProximityEvents, EvdevPostRelativeMotionEvents, EvdevPostAbsoluteMotionEvents and EvdevPostQueuedEvents are only called by EvdevProcessSyncEvent. These functions take as arguments an array of valuators which is set by EvdevProcessSyncEvent to contain ... nothing. This patch changes the prototype of the four functions, their definitions and the way they are called to remove the useless array of valuators. Signed-off-by: Éric Brunet Signed-off-by: Peter Hutterer --- src/evdev.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/evdev.h') diff --git a/src/evdev.h b/src/evdev.h index 2d6b62d..2a010e6 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -265,10 +265,8 @@ void EvdevQueueTouchEvent(InputInfoPtr pInfo, unsigned int touch, #endif void EvdevPostButtonEvent(InputInfoPtr pInfo, int button, enum ButtonAction act); void EvdevQueueButtonClicks(InputInfoPtr pInfo, int button, int count); -void EvdevPostRelativeMotionEvents(InputInfoPtr pInfo, int num_v, int first_v, - int v[MAX_VALUATORS]); -void EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo, int num_v, int first_v, - int v[MAX_VALUATORS]); +void EvdevPostRelativeMotionEvents(InputInfoPtr pInfo); +void EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo); unsigned int EvdevUtilButtonEventToButtonNumber(EvdevPtr pEvdev, int code); /* Middle Button emulation */ -- cgit v1.2.3