diff options
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/grabdevk.c')
-rw-r--r-- | nx-X11/programs/Xserver/Xi/grabdevk.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/Xi/grabdevk.c b/nx-X11/programs/Xserver/Xi/grabdevk.c index 17a9a9cf6..952c5d89a 100644 --- a/nx-X11/programs/Xserver/Xi/grabdevk.c +++ b/nx-X11/programs/Xserver/Xi/grabdevk.c @@ -84,8 +84,6 @@ SProcXGrabDeviceKey(client) register ClientPtr client; { register char n; - register long *p; - register int i; REQUEST(xGrabDeviceKeyReq); swaps(&stuff->length, n); @@ -93,12 +91,8 @@ SProcXGrabDeviceKey(client) swapl(&stuff->grabWindow, n); swaps(&stuff->modifiers, n); swaps(&stuff->event_count, n); - p = (long *) &stuff[1]; - for (i=0; i<stuff->event_count; i++) - { - swapl(p, n); - p++; - } + REQUEST_FIXED_SIZE(xGrabDeviceKeyReq, stuff->event_count * sizeof(CARD32)); + SwapLongs((CARD32 *) (&stuff[1]), stuff->event_count); return(ProcXGrabDeviceKey(client)); } |