aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/getvers.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/getvers.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/getvers.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/getvers.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/nx-X11/programs/Xserver/Xi/getvers.c b/nx-X11/programs/Xserver/Xi/getvers.c
index a68f04ed7..e2f141349 100644
--- a/nx-X11/programs/Xserver/Xi/getvers.c
+++ b/nx-X11/programs/Xserver/Xi/getvers.c
@@ -66,7 +66,7 @@ SOFTWARE.
#include "getvers.h"
-XExtensionVersion AllExtensionVersions[128];
+XExtensionVersion AllExtensionVersions[128];
/***********************************************************************
*
@@ -77,13 +77,13 @@ XExtensionVersion AllExtensionVersions[128];
int
SProcXGetExtensionVersion(client)
register ClientPtr client;
- {
+{
REQUEST(xGetExtensionVersionReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xGetExtensionVersionReq);
swaps(&stuff->nbytes);
- return(ProcXGetExtensionVersion(client));
- }
+ return (ProcXGetExtensionVersion(client));
+}
/***********************************************************************
*
@@ -94,19 +94,19 @@ SProcXGetExtensionVersion(client)
int
ProcXGetExtensionVersion (client)
register ClientPtr client;
- {
- xGetExtensionVersionReply rep;
+{
+ xGetExtensionVersionReply rep;
REQUEST(xGetExtensionVersionReq);
REQUEST_AT_LEAST_SIZE(xGetExtensionVersionReq);
- if (stuff->length != (sizeof(xGetExtensionVersionReq) +
+ if (stuff->length != (sizeof(xGetExtensionVersionReq) +
stuff->nbytes + 3)>>2)
{
- SendErrorToClient(client, IReqCode, X_GetExtensionVersion, 0,
- BadLength);
+ SendErrorToClient(client, IReqCode, X_GetExtensionVersion, 0,
+ BadLength);
return Success;
- }
+ }
memset(&rep, 0, sizeof(xGetExtensionVersionReply));
rep.repType = X_Reply;
@@ -123,11 +123,11 @@ ProcXGetExtensionVersion (client)
AllExtensionVersions[IReqCode-128].major_version;
rep.minor_version =
AllExtensionVersions[IReqCode-128].minor_version;
- }
- WriteReplyToClient (client, sizeof (xGetExtensionVersionReply), &rep);
+ }
+ WriteReplyToClient(client, sizeof(xGetExtensionVersionReply), &rep);
return Success;
- }
+}
/***********************************************************************
*
@@ -141,10 +141,10 @@ SRepXGetExtensionVersion (client, size, rep)
ClientPtr client;
int size;
xGetExtensionVersionReply *rep;
- {
+{
swaps(&rep->sequenceNumber);
swapl(&rep->length);
swaps(&rep->major_version);
swaps(&rep->minor_version);
WriteToClient(client, size, rep);
- }
+}