From 145947ed603207e85a7fcb502f88717a22dfec55 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 29 Feb 2008 18:14:00 -0300 Subject: 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 --- src/XGrDvKey.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/XGrDvKey.c') diff --git a/src/XGrDvKey.c b/src/XGrDvKey.c index 1389753..78e41a7 100644 --- a/src/XGrDvKey.c +++ b/src/XGrDvKey.c @@ -61,20 +61,18 @@ SOFTWARE. #include "XIint.h" int -XGrabDeviceKey(dpy, dev, key, modifiers, modifier_device, - grab_window, owner_events, event_count, event_list, - this_device_mode, other_devices_mode) - register Display *dpy; - XDevice *dev; - unsigned int key; /* CARD8 */ - unsigned int modifiers; /* CARD16 */ - XDevice *modifier_device; - Window grab_window; - Bool owner_events; - unsigned int event_count; - XEventClass *event_list; - int this_device_mode; - int other_devices_mode; +XGrabDeviceKey( + register Display *dpy, + XDevice *dev, + unsigned int key, /* CARD8 */ + unsigned int modifiers, /* CARD16 */ + XDevice *modifier_device, + Window grab_window, + Bool owner_events, + unsigned int event_count, + XEventClass *event_list, + int this_device_mode, + int other_devices_mode) { register xGrabDeviceKeyReq *req; XExtDisplayInfo *info = XInput_find_display(dpy); -- cgit v1.2.3