diff options
Diffstat (limited to 'programs/Xserver/Xi/selectev.c')
-rw-r--r-- | programs/Xserver/Xi/selectev.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/programs/Xserver/Xi/selectev.c b/programs/Xserver/Xi/selectev.c index e02147ac4..d400e88fb 100644 --- a/programs/Xserver/Xi/selectev.c +++ b/programs/Xserver/Xi/selectev.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/Xi/selectev.c,v 3.3tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/Xi/selectev.c,v 3.4tsi Exp $ */ /************************************************************ Copyright 1989, 1998 The Open Group @@ -81,21 +81,16 @@ int SProcXSelectExtensionEvent (client) register ClientPtr client; { - register char n; - register long *p; - register int i; + char n; REQUEST(xSelectExtensionEventReq); swaps(&stuff->length, n); REQUEST_AT_LEAST_SIZE(xSelectExtensionEventReq); swapl(&stuff->window, n); swaps(&stuff->count, n); - p = (long *) &stuff[1]; - for (i=0; i<stuff->count; i++) - { - swapl(p, n); - p++; - } + REQUEST_FIXED_SIZE(xSelectExtensionEventReq, + stuff->count * sizeof(CARD32)); + SwapLongs((CARD32 *)(&stuff[1]), stuff->count); return(ProcXSelectExtensionEvent(client)); } |