aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/getbmap.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-02-11 22:01:11 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-26 00:58:46 +0100
commit41a0ba729fb67efdc5f7bd50f73f145cf5d8a153 (patch)
tree4000aa2277bf5ae33598fb0acee7ad415f73cfc1 /nx-X11/programs/Xserver/Xi/getbmap.c
parent5bfafee5087bcbc37b7f8db246b20d7a4bba5731 (diff)
downloadnx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.tar.gz
nx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.tar.bz2
nx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.zip
Xi: reformat code, ansify
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/getbmap.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/getbmap.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/nx-X11/programs/Xserver/Xi/getbmap.c b/nx-X11/programs/Xserver/Xi/getbmap.c
index 8c9d20523..e0f8778e2 100644
--- a/nx-X11/programs/Xserver/Xi/getbmap.c
+++ b/nx-X11/programs/Xserver/Xi/getbmap.c
@@ -75,11 +75,11 @@ SOFTWARE.
int
SProcXGetDeviceButtonMapping(client)
register ClientPtr client;
- {
+{
REQUEST(xGetDeviceButtonMappingReq);
swaps(&stuff->length);
- return(ProcXGetDeviceButtonMapping(client));
- }
+ return (ProcXGetDeviceButtonMapping(client));
+}
/***********************************************************************
*
@@ -90,10 +90,10 @@ SProcXGetDeviceButtonMapping(client)
int
ProcXGetDeviceButtonMapping (client)
register ClientPtr client;
- {
- DeviceIntPtr dev;
- xGetDeviceButtonMappingReply rep;
- ButtonClassPtr b;
+{
+ DeviceIntPtr dev;
+ xGetDeviceButtonMappingReply rep;
+ ButtonClassPtr b;
REQUEST(xGetDeviceButtonMappingReq);
REQUEST_SIZE_MATCH(xGetDeviceButtonMappingReq);
@@ -104,28 +104,28 @@ ProcXGetDeviceButtonMapping (client)
rep.length = 0;
rep.sequenceNumber = client->sequence;
- dev = LookupDeviceIntRec (stuff->deviceid);
+ dev = LookupDeviceIntRec(stuff->deviceid);
if (dev == NULL)
{
- SendErrorToClient(client, IReqCode, X_GetDeviceButtonMapping, 0,
- BadDevice);
+ SendErrorToClient(client, IReqCode, X_GetDeviceButtonMapping, 0,
+ BadDevice);
return Success;
- }
+ }
b = dev->button;
if (b == NULL)
{
- SendErrorToClient(client, IReqCode, X_GetDeviceButtonMapping, 0,
- BadMatch);
+ SendErrorToClient(client, IReqCode, X_GetDeviceButtonMapping, 0,
+ BadMatch);
return Success;
- }
+ }
rep.nElts = b->numButtons;
- rep.length = (rep.nElts + (4-1))/4;
- WriteReplyToClient (client, sizeof (xGetDeviceButtonMappingReply), &rep);
+ rep.length = (rep.nElts + (4 - 1)) / 4;
+ WriteReplyToClient(client, sizeof(xGetDeviceButtonMappingReply), &rep);
WriteToClient(client, rep.nElts,
(char *)&b->map[1]);
return Success;
- }
+}
/***********************************************************************
*
@@ -139,8 +139,8 @@ SRepXGetDeviceButtonMapping (client, size, rep)
ClientPtr client;
int size;
xGetDeviceButtonMappingReply *rep;
- {
+{
swaps(&rep->sequenceNumber);
swapl(&rep->length);
WriteToClient(client, size, rep);
- }
+}