diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
commit | d568221710959cf7d783e6ff0fb80fb43a231124 (patch) | |
tree | 8d6f039393294c6ffac8533639afdebe5d68bfc1 /dix/swapreq.c | |
parent | 9508a382f8a9f241dab097d921b6d290c1c3a776 (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'dix/swapreq.c')
-rw-r--r-- | dix/swapreq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dix/swapreq.c b/dix/swapreq.c index d0b1a2525..358ec8139 100644 --- a/dix/swapreq.c +++ b/dix/swapreq.c @@ -1,3 +1,4 @@ +/* $XFree86: xc/programs/Xserver/dix/swapreq.c,v 3.5 2002/02/19 11:09:22 alanh Exp $ */ /************************************************************ Copyright 1987, 1998 The Open Group @@ -53,9 +54,8 @@ SOFTWARE. #include "Xprotostr.h" #include "misc.h" #include "dixstruct.h" - -extern int (* ProcVector[256]) (); -extern void (* EventSwapVector[128]) (); /* for SendEvent */ +#include "extnsionst.h" /* for SendEvent */ +#include "swapreq.h" /* Thanks to Jack Palevich for testing and subsequently rewriting all this */ @@ -326,7 +326,7 @@ SProcSendEvent(client) { register char n; xEvent eventT; - void (*proc)(), NotImplemented(); + EventSwapPtr proc; REQUEST(xSendEventReq); swaps(&stuff->length, n); REQUEST_SIZE_MATCH(xSendEventReq); @@ -335,7 +335,7 @@ SProcSendEvent(client) /* Swap event */ proc = EventSwapVector[stuff->event.u.u.type & 0177]; - if (!proc || (int (*)()) proc == (int (*)()) NotImplemented) /* no swapping proc; invalid event type? */ + if (!proc || proc == NotImplemented) /* no swapping proc; invalid event type? */ return (BadValue); (*proc)(&stuff->event, &eventT); stuff->event = eventT; |