Commit e5dd7a95 authored by Peter Hutterer's avatar Peter Hutterer

Xext: Scruffy the janitor don't like no "register" keywords.

parent bad96e5a
......@@ -45,7 +45,7 @@ ProcEVIQueryVersion(ClientPtr client)
{
/* REQUEST(xEVIQueryVersionReq); */
xEVIQueryVersionReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH (xEVIQueryVersionReq);
rep.type = X_Reply;
rep.length = 0;
......@@ -144,7 +144,7 @@ SProcEVIQueryVersion(ClientPtr client)
static int
SProcEVIGetVisualInfo(ClientPtr client)
{
register int n;
int n;
REQUEST(xEVIGetVisualInfoReq);
swaps(&stuff->length, n);
return ProcEVIGetVisualInfo(client);
......
......@@ -183,11 +183,11 @@ void XagResetProc(
static
int ProcXagQueryVersion(
register ClientPtr client)
ClientPtr client)
{
/* REQUEST (xXagQueryVersionReq); */
xXagQueryVersionReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH (xXagQueryVersionReq);
rep.type = X_Reply;
......@@ -378,7 +378,7 @@ int AttrValidate(
}
static int ProcXagCreate (
register ClientPtr client)
ClientPtr client)
{
REQUEST (xXagCreateReq);
AppGroupPtr pAppGrp;
......@@ -409,7 +409,7 @@ static int ProcXagCreate (
}
static int ProcXagDestroy(
register ClientPtr client)
ClientPtr client)
{
AppGroupPtr pAppGrp;
REQUEST (xXagDestroyReq);
......@@ -426,7 +426,7 @@ static int ProcXagDestroy(
static
int ProcXagGetAttr(
register ClientPtr client)
ClientPtr client)
{
AppGroupPtr pAppGrp;
REQUEST (xXagGetAttrReq);
......@@ -462,7 +462,7 @@ int ProcXagGetAttr(
static
int ProcXagQuery(
register ClientPtr client)
ClientPtr client)
{
ClientPtr pClient;
AppGroupPtr pAppGrp;
......@@ -497,7 +497,7 @@ int ProcXagQuery(
static
int ProcXagCreateAssoc(
register ClientPtr client)
ClientPtr client)
{
REQUEST (xXagCreateAssocReq);
......@@ -520,7 +520,7 @@ int ProcXagCreateAssoc(
static
int ProcXagDestroyAssoc(
register ClientPtr client)
ClientPtr client)
{
/* REQUEST (xXagDestroyAssocReq); */
......@@ -531,7 +531,7 @@ int ProcXagDestroyAssoc(
static
int ProcXagDispatch (
register ClientPtr client)
ClientPtr client)
{
REQUEST (xReq);
switch (stuff->data)
......@@ -557,9 +557,9 @@ int ProcXagDispatch (
static
int SProcXagQueryVersion(
register ClientPtr client)
ClientPtr client)
{
register int n;
int n;
REQUEST(xXagQueryVersionReq);
swaps(&stuff->length, n);
return ProcXagQueryVersion(client);
......@@ -569,7 +569,7 @@ static
int SProcXagCreate(
ClientPtr client)
{
register int n;
int n;
REQUEST (xXagCreateReq);
swaps (&stuff->length, n);
REQUEST_AT_LEAST_SIZE (xXagCreateReq);
......@@ -583,7 +583,7 @@ static
int SProcXagDestroy(
ClientPtr client)
{
register int n;
int n;
REQUEST (xXagDestroyReq);
swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagDestroyReq);
......@@ -595,7 +595,7 @@ static
int SProcXagGetAttr(
ClientPtr client)
{
register int n;
int n;
REQUEST (xXagGetAttrReq);
swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagGetAttrReq);
......@@ -607,7 +607,7 @@ static
int SProcXagQuery(
ClientPtr client)
{
register int n;
int n;
REQUEST (xXagQueryReq);
swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagQueryReq);
......@@ -619,7 +619,7 @@ static
int SProcXagCreateAssoc(
ClientPtr client)
{
register int n;
int n;
REQUEST (xXagCreateAssocReq);
swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagCreateAssocReq);
......@@ -633,7 +633,7 @@ static
int SProcXagDestroyAssoc(
ClientPtr client)
{
register int n;
int n;
REQUEST (xXagDestroyAssocReq);
swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagDestroyAssocReq);
......@@ -643,7 +643,7 @@ int SProcXagDestroyAssoc(
static
int SProcXagDispatch(
register ClientPtr client)
ClientPtr client)
{
REQUEST(xReq);
switch (stuff->data)
......
......@@ -79,11 +79,11 @@ BigReqResetProc (extEntry)
static int
ProcBigReqDispatch (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xBigReqEnableReq);
xBigReqEnableReply rep;
register int n;
int n;
if (client->swapped) {
swaps(&stuff->length, n);
......
......@@ -163,11 +163,11 @@ void ResetProc(
static
int ProcQueryVersion(
register ClientPtr client)
ClientPtr client)
{
/* REQUEST (xXcupQueryVersionReq); */
xXcupQueryVersionReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH (xXcupQueryVersionReq);
rep.type = X_Reply;
......@@ -187,12 +187,12 @@ int ProcQueryVersion(
static
int ProcGetReservedColormapEntries(
register ClientPtr client)
ClientPtr client)
{
REQUEST (xXcupGetReservedColormapEntriesReq);
xXcupGetReservedColormapEntriesReply rep;
xColorItem* cptr;
register int n;
int n;
REQUEST_SIZE_MATCH (xXcupGetReservedColormapEntriesReq);
......@@ -220,7 +220,7 @@ int ProcGetReservedColormapEntries(
static
int ProcStoreColors(
register ClientPtr client)
ClientPtr client)
{
REQUEST (xXcupStoreColorsReq);
ColormapPtr pcmp;
......@@ -279,7 +279,7 @@ int ProcStoreColors(
static
int ProcDispatch(
register ClientPtr client)
ClientPtr client)
{
REQUEST (xReq);
switch (stuff->data)
......@@ -297,9 +297,9 @@ int ProcDispatch(
static
int SProcQueryVersion(
register ClientPtr client)
ClientPtr client)
{
register int n;
int n;
REQUEST(xXcupQueryVersionReq);
swaps(&stuff->length, n);
......@@ -310,7 +310,7 @@ static
int SProcGetReservedColormapEntries(
ClientPtr client)
{
register int n;
int n;
REQUEST (xXcupGetReservedColormapEntriesReq);
swaps (&stuff->length, n);
......@@ -323,7 +323,7 @@ static
int SProcXcupStoreColors(
ClientPtr client)
{
register int n;
int n;
int count;
xColorItem* pItem;
......@@ -339,7 +339,7 @@ int SProcXcupStoreColors(
static
int SProcDispatch(
register ClientPtr client)
ClientPtr client)
{
REQUEST(xReq);
switch (stuff->data)
......
......@@ -99,11 +99,11 @@ DPMSResetProc (extEntry)
static int
ProcDPMSGetVersion(client)
register ClientPtr client;
ClientPtr client;
{
/* REQUEST(xDPMSGetVersionReq); */
xDPMSGetVersionReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH(xDPMSGetVersionReq);
......@@ -122,11 +122,11 @@ ProcDPMSGetVersion(client)
}
static int
ProcDPMSCapable(register ClientPtr client)
ProcDPMSCapable(ClientPtr client)
{
/* REQUEST(xDPMSCapableReq); */
xDPMSCapableReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH(xDPMSCapableReq);
......@@ -144,11 +144,11 @@ ProcDPMSCapable(register ClientPtr client)
static int
ProcDPMSGetTimeouts(client)
register ClientPtr client;
ClientPtr client;
{
/* REQUEST(xDPMSGetTimeoutsReq); */
xDPMSGetTimeoutsReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq);
......@@ -171,7 +171,7 @@ ProcDPMSGetTimeouts(client)
static int
ProcDPMSSetTimeouts(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSSetTimeoutsReq);
......@@ -198,7 +198,7 @@ ProcDPMSSetTimeouts(client)
static int
ProcDPMSEnable(client)
register ClientPtr client;
ClientPtr client;
{
/* REQUEST(xDPMSEnableReq); */
......@@ -212,7 +212,7 @@ ProcDPMSEnable(client)
static int
ProcDPMSDisable(client)
register ClientPtr client;
ClientPtr client;
{
/* REQUEST(xDPMSDisableReq); */
......@@ -227,7 +227,7 @@ ProcDPMSDisable(client)
static int
ProcDPMSForceLevel(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSForceLevelReq);
......@@ -259,11 +259,11 @@ ProcDPMSForceLevel(client)
}
static int
ProcDPMSInfo(register ClientPtr client)
ProcDPMSInfo(ClientPtr client)
{
/* REQUEST(xDPMSInfoReq); */
xDPMSInfoReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH(xDPMSInfoReq);
......@@ -283,7 +283,7 @@ ProcDPMSInfo(register ClientPtr client)
static int
ProcDPMSDispatch (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xReq);
......@@ -312,9 +312,9 @@ ProcDPMSDispatch (client)
static int
SProcDPMSGetVersion(client)
register ClientPtr client;
ClientPtr client;
{
register int n;
int n;
REQUEST(xDPMSGetVersionReq);
swaps(&stuff->length, n);
......@@ -325,10 +325,10 @@ SProcDPMSGetVersion(client)
}
static int
SProcDPMSCapable(register ClientPtr client)
SProcDPMSCapable(ClientPtr client)
{
REQUEST(xDPMSCapableReq);
register int n;
int n;
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSCapableReq);
......@@ -338,10 +338,10 @@ SProcDPMSCapable(register ClientPtr client)
static int
SProcDPMSGetTimeouts(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSGetTimeoutsReq);
register int n;
int n;
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq);
......@@ -351,10 +351,10 @@ SProcDPMSGetTimeouts(client)
static int
SProcDPMSSetTimeouts(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSSetTimeoutsReq);
register int n;
int n;
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSSetTimeoutsReq);
......@@ -367,10 +367,10 @@ SProcDPMSSetTimeouts(client)
static int
SProcDPMSEnable(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSEnableReq);
register int n;
int n;
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSEnableReq);
......@@ -380,10 +380,10 @@ SProcDPMSEnable(client)
static int
SProcDPMSDisable(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSDisableReq);
register int n;
int n;
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSDisableReq);
......@@ -393,10 +393,10 @@ SProcDPMSDisable(client)
static int
SProcDPMSForceLevel(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSForceLevelReq);
register int n;
int n;
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSForceLevelReq);
......@@ -408,10 +408,10 @@ SProcDPMSForceLevel(client)
static int
SProcDPMSInfo(client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xDPMSInfoReq);
register int n;
int n;
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSInfoReq);
......@@ -421,7 +421,7 @@ SProcDPMSInfo(client)
static int
SProcDPMSDispatch (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xReq);
switch (stuff->data)
......
......@@ -100,10 +100,10 @@ FontCacheResetProc (extEntry)
static int
ProcFontCacheQueryVersion(client)
register ClientPtr client;
ClientPtr client;
{
xFontCacheQueryVersionReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH(xFontCacheQueryVersionReq);
rep.type = X_Reply;
......@@ -123,11 +123,11 @@ ProcFontCacheQueryVersion(client)
static int
ProcFontCacheGetCacheSettings(client)
register ClientPtr client;
ClientPtr client;
{
xFontCacheGetCacheSettingsReply rep;
FontCacheSettings cinfo;
register int n;
int n;
REQUEST_SIZE_MATCH(xFontCacheGetCacheSettingsReq);
rep.type = X_Reply;
......@@ -161,11 +161,11 @@ ProcFontCacheGetCacheSettings(client)
static int
ProcFontCacheGetCacheStatistics(client)
register ClientPtr client;
ClientPtr client;
{
xFontCacheGetCacheStatisticsReply rep;
FontCacheStatistics cstats;
register int n;
int n;
REQUEST_SIZE_MATCH(xFontCacheGetCacheStatisticsReq);
rep.type = X_Reply;
......@@ -214,7 +214,7 @@ ProcFontCacheGetCacheStatistics(client)
static int
ProcFontCacheChangeCacheSettings(client)
register ClientPtr client;
ClientPtr client;
{
FontCacheSettings cs;
......@@ -243,7 +243,7 @@ ProcFontCacheChangeCacheSettings(client)
static int
ProcFontCacheDispatch (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xReq);
switch (stuff->data)
......@@ -263,9 +263,9 @@ ProcFontCacheDispatch (client)
static int
SProcFontCacheQueryVersion(client)
register ClientPtr client;
ClientPtr client;
{
register int n;
int n;
REQUEST(xFontCacheQueryVersionReq);
swaps(&stuff->length, n);
return ProcFontCacheQueryVersion(client);
......@@ -275,7 +275,7 @@ static int
SProcFontCacheGetCacheSettings(client)
ClientPtr client;
{
register int n;
int n;
REQUEST(xFontCacheGetCacheSettingsReq);
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xFontCacheGetCacheSettingsReq);
......@@ -286,7 +286,7 @@ static int
SProcFontCacheGetCacheStatistics(client)
ClientPtr client;
{
register int n;
int n;
REQUEST(xFontCacheGetCacheStatisticsReq);
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xFontCacheGetCacheStatisticsReq);
......@@ -297,7 +297,7 @@ static int
SProcFontCacheChangeCacheSettings(client)
ClientPtr client;
{
register int n;
int n;
REQUEST(xFontCacheChangeCacheSettingsReq);
swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xFontCacheChangeCacheSettingsReq);
......@@ -311,7 +311,7 @@ SProcFontCacheChangeCacheSettings(client)
static int
SProcFontCacheDispatch (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xReq);
switch (stuff->data)
......
......@@ -282,10 +282,10 @@ ExtensionEntry *extEntry;
static int
ProcGetBufferVersion (client)
register ClientPtr client;
ClientPtr client;
{
xMbufGetBufferVersionReply rep;
register int n;
int n;
REQUEST_SIZE_MATCH (xMbufGetBufferVersionReq);
rep.type = X_Reply;
......@@ -441,11 +441,11 @@ CreateImageBuffers (pWin, nbuf, ids, action, hint)
static int
ProcCreateImageBuffers (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xMbufCreateImageBuffersReq);
xMbufCreateImageBuffersReply rep;
register int n;
int n;
WindowPtr pWin;
XID *ids;
int len, nbuf, i, err, rc;
......@@ -506,7 +506,7 @@ ProcCreateImageBuffers (client)
static int
ProcDisplayImageBuffers (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xMbufDisplayImageBuffersReq);
MultibufferPtr *pMultibuffer;
......@@ -579,7 +579,7 @@ MultibufferResType);
static int
ProcDestroyImageBuffers (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST (xMbufDestroyImageBuffersReq);
WindowPtr pWin;
......@@ -595,7 +595,7 @@ ProcDestroyImageBuffers (client)
static int
ProcSetMBufferAttributes (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST (xMbufSetMBufferAttributesReq);
WindowPtr pWin;
......@@ -694,7 +694,7 @@ ProcGetMBufferAttributes (client)
static int
ProcSetBufferAttributes (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xMbufSetBufferAttributesReq);
MultibufferPtr pMultibuffer;
......@@ -736,7 +736,7 @@ ProcSetBufferAttributes (client)
int
ProcGetBufferAttributes (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xMbufGetBufferAttributesReq);
MultibufferPtr pMultibuffer;
......@@ -780,7 +780,7 @@ ProcGetBufferAttributes (client)
static int
ProcGetBufferInfo (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST (xMbufGetBufferInfoReq);
DrawablePtr pDrawable;
......@@ -845,7 +845,7 @@ ProcGetBufferInfo (client)
static int
ProcClearImageBufferArea (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST (xMbufClearImageBufferAreaReq);
MultibufferPtr pMultibuffer;
......@@ -907,7 +907,7 @@ ProcClearImageBufferArea (client)
static int
ProcMultibufferDispatch (client)
register ClientPtr client;
ClientPtr client;
{
REQUEST(xReq);
switch (stuff->data) {
......@@ -938,9 +938,9 @@ ProcMultibufferDispatch (client)
static int
SProcGetBufferVersion (client)
register ClientPtr client;
ClientPtr client;
{
register int n;
int n;
REQUEST (xMbufGetBufferVersionReq);
swaps (&stuff->length, n);
......@@ -949,9 +949,9 @@ SProcGetBufferVersion (client)
static int
SProcCreateImageBuffers (client)
register ClientPtr client;
ClientPtr client;
{
register int n;
int n;
REQUEST (xMbufCreateImageBuffersReq);
swaps (&stuff->length, n);
...