From 2c7c520cfe0df30f4bc3adba59d9c62582823bf8 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 4 Aug 2011 15:35:41 -0400 Subject: Use internal temp variable for swap macros Also, fix whitespace, mainly around swaps(&rep.sequenceNumber) Reviewed-by: Peter Harris Signed-off-by: Matt Turner --- Xi/setfocus.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Xi/setfocus.c') diff --git a/Xi/setfocus.c b/Xi/setfocus.c index 03bc37acb..feec3fc35 100644 --- a/Xi/setfocus.c +++ b/Xi/setfocus.c @@ -74,13 +74,11 @@ SOFTWARE. int SProcXSetDeviceFocus(ClientPtr client) { - char n; - REQUEST(xSetDeviceFocusReq); - swaps(&stuff->length, n); + swaps(&stuff->length); REQUEST_SIZE_MATCH(xSetDeviceFocusReq); - swapl(&stuff->focus, n); - swapl(&stuff->time, n); + swapl(&stuff->focus); + swapl(&stuff->time); return (ProcXSetDeviceFocus(client)); } -- cgit v1.2.3