summaryrefslogtreecommitdiff
path: root/Xi/grabdevb.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2011-08-04 00:19:04 -0400
committerMatt Turner <mattst88@gmail.com>2011-08-04 00:19:04 -0400
commit3b508d8ced46c0706abd4a95efe34ce9972eb41a (patch)
tree7ec1825d4b3a49453ebc99f05e7497037f9a01ed /Xi/grabdevb.c
parentb5db8e73ba366befdfa7ceaafa5a3587fff588fb (diff)
Remove left-over temporary variables from swap macrosbswap-cleanup0
Also, fix whitespace, mainly around swaps(&rep.sequenceNumber) Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Tested-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'Xi/grabdevb.c')
-rw-r--r--Xi/grabdevb.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Xi/grabdevb.c b/Xi/grabdevb.c
index e235f5313..2897d410b 100644
--- a/Xi/grabdevb.c
+++ b/Xi/grabdevb.c
@@ -74,14 +74,12 @@ SOFTWARE.
int
SProcXGrabDeviceButton(ClientPtr client)
{
- char n;
-
REQUEST(xGrabDeviceButtonReq);
- swaps(&stuff->length, n);
+ swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xGrabDeviceButtonReq);
- swapl(&stuff->grabWindow, n);
- swaps(&stuff->modifiers, n);
- swaps(&stuff->event_count, n);
+ swapl(&stuff->grabWindow);
+ swaps(&stuff->modifiers);
+ swaps(&stuff->event_count);
REQUEST_FIXED_SIZE(xGrabDeviceButtonReq,
stuff->event_count * sizeof(CARD32));
SwapLongs((CARD32 *) (&stuff[1]), stuff->event_count);