summaryrefslogtreecommitdiff
path: root/src/XGrabDev.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-02-29 18:14:00 -0300
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-20 15:10:03 +0930
commit145947ed603207e85a7fcb502f88717a22dfec55 (patch)
tree900e73f428f15007e010b1261aa7791b96e61561 /src/XGrabDev.c
parent3e99cc281509c70c9240e71ae55cf4e62c6569ba (diff)
libXi ansification.
Thre are still two remaining compiler warnings, because of non matching function prototypes and function pointer arguments prototypes: src/XSndExEv.c:XSendExtensionEvent() variable register Status(**fp) (Display *, XEvent*, xEvent **, int *) doesn't match struct _XDisplay's: Status (*wire_vec[128])( /* vector for event to wire */ Display * /* dpy */, XEvent * /* re */, xEvent * /* event */ ); and src/XExtInt.c:xinput_extension_hooks field event_to_wire of type XExtensionHooks that has the prototype Status (*event_to_wire)( Display* /* display */, XEvent* /* re */, xEvent* /* event */ ); does not match Status _XiEventToWire( register Display *dpy, /* pointer to display structure */ register XEvent *re, /* pointer to client event */ register xEvent **event, /* wire protocol event */ register int *count); Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
Diffstat (limited to 'src/XGrabDev.c')
-rw-r--r--src/XGrabDev.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/XGrabDev.c b/src/XGrabDev.c
index 92f1c11..cb2f7d7 100644
--- a/src/XGrabDev.c
+++ b/src/XGrabDev.c
@@ -61,17 +61,16 @@ SOFTWARE.
#include "XIint.h"
int
-XGrabDevice(dpy, dev, grab_window, ownerEvents, event_count, event_list,
- this_device_mode, other_devices_mode, time)
- register Display *dpy;
- XDevice *dev;
- Window grab_window;
- Bool ownerEvents;
- int event_count;
- XEventClass *event_list;
- int this_device_mode;
- int other_devices_mode;
- Time time;
+XGrabDevice(
+ register Display *dpy,
+ XDevice *dev,
+ Window grab_window,
+ Bool ownerEvents,
+ int event_count,
+ XEventClass *event_list,
+ int this_device_mode,
+ int other_devices_mode,
+ Time time)
{
xGrabDeviceReply rep;
register xGrabDeviceReq *req;