From 41a0ba729fb67efdc5f7bd50f73f145cf5d8a153 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 11 Feb 2018 22:01:11 +0100 Subject: Xi: reformat code, ansify --- nx-X11/programs/Xserver/Xi/allowev.c | 62 ++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'nx-X11/programs/Xserver/Xi/allowev.c') diff --git a/nx-X11/programs/Xserver/Xi/allowev.c b/nx-X11/programs/Xserver/Xi/allowev.c index e178bb3a1..77e9994ba 100644 --- a/nx-X11/programs/Xserver/Xi/allowev.c +++ b/nx-X11/programs/Xserver/Xi/allowev.c @@ -77,13 +77,13 @@ SOFTWARE. int SProcXAllowDeviceEvents(client) register ClientPtr client; - { +{ REQUEST(xAllowDeviceEventsReq); swaps(&stuff->length); REQUEST_SIZE_MATCH(xAllowDeviceEventsReq); swapl(&stuff->time); - return(ProcXAllowDeviceEvents(client)); - } + return (ProcXAllowDeviceEvents(client)); +} /*********************************************************************** * @@ -94,46 +94,46 @@ SProcXAllowDeviceEvents(client) int ProcXAllowDeviceEvents(client) register ClientPtr client; - { - TimeStamp time; - DeviceIntPtr thisdev; +{ + TimeStamp time; + DeviceIntPtr thisdev; REQUEST(xAllowDeviceEventsReq); REQUEST_SIZE_MATCH(xAllowDeviceEventsReq); - thisdev = LookupDeviceIntRec (stuff->deviceid); + thisdev = LookupDeviceIntRec(stuff->deviceid); if (thisdev == NULL) { SendErrorToClient(client, IReqCode, X_AllowDeviceEvents, 0, BadDevice); return Success; - } + } time = ClientTimeToServerTime(stuff->time); switch (stuff->mode) { - case ReplayThisDevice: - AllowSome(client, time, thisdev, NOT_GRABBED); - break; - case SyncThisDevice: - AllowSome(client, time, thisdev, FREEZE_NEXT_EVENT); - break; - case AsyncThisDevice: - AllowSome(client, time, thisdev, THAWED); - break; - case AsyncOtherDevices: - AllowSome(client, time, thisdev, THAW_OTHERS); - break; - case SyncAll: - AllowSome(client, time, thisdev, FREEZE_BOTH_NEXT_EVENT); - break; - case AsyncAll: - AllowSome(client, time, thisdev, THAWED_BOTH); - break; - default: + case ReplayThisDevice: + AllowSome(client, time, thisdev, NOT_GRABBED); + break; + case SyncThisDevice: + AllowSome(client, time, thisdev, FREEZE_NEXT_EVENT); + break; + case AsyncThisDevice: + AllowSome(client, time, thisdev, THAWED); + break; + case AsyncOtherDevices: + AllowSome(client, time, thisdev, THAW_OTHERS); + break; + case SyncAll: + AllowSome(client, time, thisdev, FREEZE_BOTH_NEXT_EVENT); + break; + case AsyncAll: + AllowSome(client, time, thisdev, THAWED_BOTH); + break; + default: SendErrorToClient(client, IReqCode, X_AllowDeviceEvents, 0, BadValue); - client->errorValue = stuff->mode; - return Success; - } - return Success; + client->errorValue = stuff->mode; + return Success; } + return Success; +} -- cgit v1.2.3