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

This commit is contained in:
Peter Hutterer 2007-11-21 15:59:31 +10:30
parent bad96e5a86
commit e5dd7a9579
24 changed files with 321 additions and 321 deletions

View File

@ -45,7 +45,7 @@ ProcEVIQueryVersion(ClientPtr client)
{ {
/* REQUEST(xEVIQueryVersionReq); */ /* REQUEST(xEVIQueryVersionReq); */
xEVIQueryVersionReply rep; xEVIQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH (xEVIQueryVersionReq); REQUEST_SIZE_MATCH (xEVIQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
rep.length = 0; rep.length = 0;
@ -144,7 +144,7 @@ SProcEVIQueryVersion(ClientPtr client)
static int static int
SProcEVIGetVisualInfo(ClientPtr client) SProcEVIGetVisualInfo(ClientPtr client)
{ {
register int n; int n;
REQUEST(xEVIGetVisualInfoReq); REQUEST(xEVIGetVisualInfoReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
return ProcEVIGetVisualInfo(client); return ProcEVIGetVisualInfo(client);

View File

@ -183,11 +183,11 @@ void XagResetProc(
static static
int ProcXagQueryVersion( int ProcXagQueryVersion(
register ClientPtr client) ClientPtr client)
{ {
/* REQUEST (xXagQueryVersionReq); */ /* REQUEST (xXagQueryVersionReq); */
xXagQueryVersionReply rep; xXagQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH (xXagQueryVersionReq); REQUEST_SIZE_MATCH (xXagQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -378,7 +378,7 @@ int AttrValidate(
} }
static int ProcXagCreate ( static int ProcXagCreate (
register ClientPtr client) ClientPtr client)
{ {
REQUEST (xXagCreateReq); REQUEST (xXagCreateReq);
AppGroupPtr pAppGrp; AppGroupPtr pAppGrp;
@ -409,7 +409,7 @@ static int ProcXagCreate (
} }
static int ProcXagDestroy( static int ProcXagDestroy(
register ClientPtr client) ClientPtr client)
{ {
AppGroupPtr pAppGrp; AppGroupPtr pAppGrp;
REQUEST (xXagDestroyReq); REQUEST (xXagDestroyReq);
@ -426,7 +426,7 @@ static int ProcXagDestroy(
static static
int ProcXagGetAttr( int ProcXagGetAttr(
register ClientPtr client) ClientPtr client)
{ {
AppGroupPtr pAppGrp; AppGroupPtr pAppGrp;
REQUEST (xXagGetAttrReq); REQUEST (xXagGetAttrReq);
@ -462,7 +462,7 @@ int ProcXagGetAttr(
static static
int ProcXagQuery( int ProcXagQuery(
register ClientPtr client) ClientPtr client)
{ {
ClientPtr pClient; ClientPtr pClient;
AppGroupPtr pAppGrp; AppGroupPtr pAppGrp;
@ -497,7 +497,7 @@ int ProcXagQuery(
static static
int ProcXagCreateAssoc( int ProcXagCreateAssoc(
register ClientPtr client) ClientPtr client)
{ {
REQUEST (xXagCreateAssocReq); REQUEST (xXagCreateAssocReq);
@ -520,7 +520,7 @@ int ProcXagCreateAssoc(
static static
int ProcXagDestroyAssoc( int ProcXagDestroyAssoc(
register ClientPtr client) ClientPtr client)
{ {
/* REQUEST (xXagDestroyAssocReq); */ /* REQUEST (xXagDestroyAssocReq); */
@ -531,7 +531,7 @@ int ProcXagDestroyAssoc(
static static
int ProcXagDispatch ( int ProcXagDispatch (
register ClientPtr client) ClientPtr client)
{ {
REQUEST (xReq); REQUEST (xReq);
switch (stuff->data) switch (stuff->data)
@ -557,9 +557,9 @@ int ProcXagDispatch (
static static
int SProcXagQueryVersion( int SProcXagQueryVersion(
register ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST(xXagQueryVersionReq); REQUEST(xXagQueryVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
return ProcXagQueryVersion(client); return ProcXagQueryVersion(client);
@ -569,7 +569,7 @@ static
int SProcXagCreate( int SProcXagCreate(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST (xXagCreateReq); REQUEST (xXagCreateReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_AT_LEAST_SIZE (xXagCreateReq); REQUEST_AT_LEAST_SIZE (xXagCreateReq);
@ -583,7 +583,7 @@ static
int SProcXagDestroy( int SProcXagDestroy(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST (xXagDestroyReq); REQUEST (xXagDestroyReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagDestroyReq); REQUEST_SIZE_MATCH (xXagDestroyReq);
@ -595,7 +595,7 @@ static
int SProcXagGetAttr( int SProcXagGetAttr(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST (xXagGetAttrReq); REQUEST (xXagGetAttrReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagGetAttrReq); REQUEST_SIZE_MATCH (xXagGetAttrReq);
@ -607,7 +607,7 @@ static
int SProcXagQuery( int SProcXagQuery(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST (xXagQueryReq); REQUEST (xXagQueryReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagQueryReq); REQUEST_SIZE_MATCH (xXagQueryReq);
@ -619,7 +619,7 @@ static
int SProcXagCreateAssoc( int SProcXagCreateAssoc(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST (xXagCreateAssocReq); REQUEST (xXagCreateAssocReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagCreateAssocReq); REQUEST_SIZE_MATCH (xXagCreateAssocReq);
@ -633,7 +633,7 @@ static
int SProcXagDestroyAssoc( int SProcXagDestroyAssoc(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST (xXagDestroyAssocReq); REQUEST (xXagDestroyAssocReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH (xXagDestroyAssocReq); REQUEST_SIZE_MATCH (xXagDestroyAssocReq);
@ -643,7 +643,7 @@ int SProcXagDestroyAssoc(
static static
int SProcXagDispatch( int SProcXagDispatch(
register ClientPtr client) ClientPtr client)
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -79,11 +79,11 @@ BigReqResetProc (extEntry)
static int static int
ProcBigReqDispatch (client) ProcBigReqDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xBigReqEnableReq); REQUEST(xBigReqEnableReq);
xBigReqEnableReply rep; xBigReqEnableReply rep;
register int n; int n;
if (client->swapped) { if (client->swapped) {
swaps(&stuff->length, n); swaps(&stuff->length, n);

View File

@ -163,11 +163,11 @@ void ResetProc(
static static
int ProcQueryVersion( int ProcQueryVersion(
register ClientPtr client) ClientPtr client)
{ {
/* REQUEST (xXcupQueryVersionReq); */ /* REQUEST (xXcupQueryVersionReq); */
xXcupQueryVersionReply rep; xXcupQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH (xXcupQueryVersionReq); REQUEST_SIZE_MATCH (xXcupQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -187,12 +187,12 @@ int ProcQueryVersion(
static static
int ProcGetReservedColormapEntries( int ProcGetReservedColormapEntries(
register ClientPtr client) ClientPtr client)
{ {
REQUEST (xXcupGetReservedColormapEntriesReq); REQUEST (xXcupGetReservedColormapEntriesReq);
xXcupGetReservedColormapEntriesReply rep; xXcupGetReservedColormapEntriesReply rep;
xColorItem* cptr; xColorItem* cptr;
register int n; int n;
REQUEST_SIZE_MATCH (xXcupGetReservedColormapEntriesReq); REQUEST_SIZE_MATCH (xXcupGetReservedColormapEntriesReq);
@ -220,7 +220,7 @@ int ProcGetReservedColormapEntries(
static static
int ProcStoreColors( int ProcStoreColors(
register ClientPtr client) ClientPtr client)
{ {
REQUEST (xXcupStoreColorsReq); REQUEST (xXcupStoreColorsReq);
ColormapPtr pcmp; ColormapPtr pcmp;
@ -279,7 +279,7 @@ int ProcStoreColors(
static static
int ProcDispatch( int ProcDispatch(
register ClientPtr client) ClientPtr client)
{ {
REQUEST (xReq); REQUEST (xReq);
switch (stuff->data) switch (stuff->data)
@ -297,9 +297,9 @@ int ProcDispatch(
static static
int SProcQueryVersion( int SProcQueryVersion(
register ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST(xXcupQueryVersionReq); REQUEST(xXcupQueryVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -310,7 +310,7 @@ static
int SProcGetReservedColormapEntries( int SProcGetReservedColormapEntries(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
REQUEST (xXcupGetReservedColormapEntriesReq); REQUEST (xXcupGetReservedColormapEntriesReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -323,7 +323,7 @@ static
int SProcXcupStoreColors( int SProcXcupStoreColors(
ClientPtr client) ClientPtr client)
{ {
register int n; int n;
int count; int count;
xColorItem* pItem; xColorItem* pItem;
@ -339,7 +339,7 @@ int SProcXcupStoreColors(
static static
int SProcDispatch( int SProcDispatch(
register ClientPtr client) ClientPtr client)
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -99,11 +99,11 @@ DPMSResetProc (extEntry)
static int static int
ProcDPMSGetVersion(client) ProcDPMSGetVersion(client)
register ClientPtr client; ClientPtr client;
{ {
/* REQUEST(xDPMSGetVersionReq); */ /* REQUEST(xDPMSGetVersionReq); */
xDPMSGetVersionReply rep; xDPMSGetVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xDPMSGetVersionReq); REQUEST_SIZE_MATCH(xDPMSGetVersionReq);
@ -122,11 +122,11 @@ ProcDPMSGetVersion(client)
} }
static int static int
ProcDPMSCapable(register ClientPtr client) ProcDPMSCapable(ClientPtr client)
{ {
/* REQUEST(xDPMSCapableReq); */ /* REQUEST(xDPMSCapableReq); */
xDPMSCapableReply rep; xDPMSCapableReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xDPMSCapableReq); REQUEST_SIZE_MATCH(xDPMSCapableReq);
@ -144,11 +144,11 @@ ProcDPMSCapable(register ClientPtr client)
static int static int
ProcDPMSGetTimeouts(client) ProcDPMSGetTimeouts(client)
register ClientPtr client; ClientPtr client;
{ {
/* REQUEST(xDPMSGetTimeoutsReq); */ /* REQUEST(xDPMSGetTimeoutsReq); */
xDPMSGetTimeoutsReply rep; xDPMSGetTimeoutsReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq); REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq);
@ -171,7 +171,7 @@ ProcDPMSGetTimeouts(client)
static int static int
ProcDPMSSetTimeouts(client) ProcDPMSSetTimeouts(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSSetTimeoutsReq); REQUEST(xDPMSSetTimeoutsReq);
@ -198,7 +198,7 @@ ProcDPMSSetTimeouts(client)
static int static int
ProcDPMSEnable(client) ProcDPMSEnable(client)
register ClientPtr client; ClientPtr client;
{ {
/* REQUEST(xDPMSEnableReq); */ /* REQUEST(xDPMSEnableReq); */
@ -212,7 +212,7 @@ ProcDPMSEnable(client)
static int static int
ProcDPMSDisable(client) ProcDPMSDisable(client)
register ClientPtr client; ClientPtr client;
{ {
/* REQUEST(xDPMSDisableReq); */ /* REQUEST(xDPMSDisableReq); */
@ -227,7 +227,7 @@ ProcDPMSDisable(client)
static int static int
ProcDPMSForceLevel(client) ProcDPMSForceLevel(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSForceLevelReq); REQUEST(xDPMSForceLevelReq);
@ -259,11 +259,11 @@ ProcDPMSForceLevel(client)
} }
static int static int
ProcDPMSInfo(register ClientPtr client) ProcDPMSInfo(ClientPtr client)
{ {
/* REQUEST(xDPMSInfoReq); */ /* REQUEST(xDPMSInfoReq); */
xDPMSInfoReply rep; xDPMSInfoReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xDPMSInfoReq); REQUEST_SIZE_MATCH(xDPMSInfoReq);
@ -283,7 +283,7 @@ ProcDPMSInfo(register ClientPtr client)
static int static int
ProcDPMSDispatch (client) ProcDPMSDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
@ -312,9 +312,9 @@ ProcDPMSDispatch (client)
static int static int
SProcDPMSGetVersion(client) SProcDPMSGetVersion(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xDPMSGetVersionReq); REQUEST(xDPMSGetVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -325,10 +325,10 @@ SProcDPMSGetVersion(client)
} }
static int static int
SProcDPMSCapable(register ClientPtr client) SProcDPMSCapable(ClientPtr client)
{ {
REQUEST(xDPMSCapableReq); REQUEST(xDPMSCapableReq);
register int n; int n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSCapableReq); REQUEST_SIZE_MATCH(xDPMSCapableReq);
@ -338,10 +338,10 @@ SProcDPMSCapable(register ClientPtr client)
static int static int
SProcDPMSGetTimeouts(client) SProcDPMSGetTimeouts(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSGetTimeoutsReq); REQUEST(xDPMSGetTimeoutsReq);
register int n; int n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq); REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq);
@ -351,10 +351,10 @@ SProcDPMSGetTimeouts(client)
static int static int
SProcDPMSSetTimeouts(client) SProcDPMSSetTimeouts(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSSetTimeoutsReq); REQUEST(xDPMSSetTimeoutsReq);
register int n; int n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSSetTimeoutsReq); REQUEST_SIZE_MATCH(xDPMSSetTimeoutsReq);
@ -367,10 +367,10 @@ SProcDPMSSetTimeouts(client)
static int static int
SProcDPMSEnable(client) SProcDPMSEnable(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSEnableReq); REQUEST(xDPMSEnableReq);
register int n; int n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSEnableReq); REQUEST_SIZE_MATCH(xDPMSEnableReq);
@ -380,10 +380,10 @@ SProcDPMSEnable(client)
static int static int
SProcDPMSDisable(client) SProcDPMSDisable(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSDisableReq); REQUEST(xDPMSDisableReq);
register int n; int n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSDisableReq); REQUEST_SIZE_MATCH(xDPMSDisableReq);
@ -393,10 +393,10 @@ SProcDPMSDisable(client)
static int static int
SProcDPMSForceLevel(client) SProcDPMSForceLevel(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSForceLevelReq); REQUEST(xDPMSForceLevelReq);
register int n; int n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSForceLevelReq); REQUEST_SIZE_MATCH(xDPMSForceLevelReq);
@ -408,10 +408,10 @@ SProcDPMSForceLevel(client)
static int static int
SProcDPMSInfo(client) SProcDPMSInfo(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xDPMSInfoReq); REQUEST(xDPMSInfoReq);
register int n; int n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xDPMSInfoReq); REQUEST_SIZE_MATCH(xDPMSInfoReq);
@ -421,7 +421,7 @@ SProcDPMSInfo(client)
static int static int
SProcDPMSDispatch (client) SProcDPMSDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -100,10 +100,10 @@ FontCacheResetProc (extEntry)
static int static int
ProcFontCacheQueryVersion(client) ProcFontCacheQueryVersion(client)
register ClientPtr client; ClientPtr client;
{ {
xFontCacheQueryVersionReply rep; xFontCacheQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xFontCacheQueryVersionReq); REQUEST_SIZE_MATCH(xFontCacheQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -123,11 +123,11 @@ ProcFontCacheQueryVersion(client)
static int static int
ProcFontCacheGetCacheSettings(client) ProcFontCacheGetCacheSettings(client)
register ClientPtr client; ClientPtr client;
{ {
xFontCacheGetCacheSettingsReply rep; xFontCacheGetCacheSettingsReply rep;
FontCacheSettings cinfo; FontCacheSettings cinfo;
register int n; int n;
REQUEST_SIZE_MATCH(xFontCacheGetCacheSettingsReq); REQUEST_SIZE_MATCH(xFontCacheGetCacheSettingsReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -161,11 +161,11 @@ ProcFontCacheGetCacheSettings(client)
static int static int
ProcFontCacheGetCacheStatistics(client) ProcFontCacheGetCacheStatistics(client)
register ClientPtr client; ClientPtr client;
{ {
xFontCacheGetCacheStatisticsReply rep; xFontCacheGetCacheStatisticsReply rep;
FontCacheStatistics cstats; FontCacheStatistics cstats;
register int n; int n;
REQUEST_SIZE_MATCH(xFontCacheGetCacheStatisticsReq); REQUEST_SIZE_MATCH(xFontCacheGetCacheStatisticsReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -214,7 +214,7 @@ ProcFontCacheGetCacheStatistics(client)
static int static int
ProcFontCacheChangeCacheSettings(client) ProcFontCacheChangeCacheSettings(client)
register ClientPtr client; ClientPtr client;
{ {
FontCacheSettings cs; FontCacheSettings cs;
@ -243,7 +243,7 @@ ProcFontCacheChangeCacheSettings(client)
static int static int
ProcFontCacheDispatch (client) ProcFontCacheDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)
@ -263,9 +263,9 @@ ProcFontCacheDispatch (client)
static int static int
SProcFontCacheQueryVersion(client) SProcFontCacheQueryVersion(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xFontCacheQueryVersionReq); REQUEST(xFontCacheQueryVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
return ProcFontCacheQueryVersion(client); return ProcFontCacheQueryVersion(client);
@ -275,7 +275,7 @@ static int
SProcFontCacheGetCacheSettings(client) SProcFontCacheGetCacheSettings(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xFontCacheGetCacheSettingsReq); REQUEST(xFontCacheGetCacheSettingsReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xFontCacheGetCacheSettingsReq); REQUEST_SIZE_MATCH(xFontCacheGetCacheSettingsReq);
@ -286,7 +286,7 @@ static int
SProcFontCacheGetCacheStatistics(client) SProcFontCacheGetCacheStatistics(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xFontCacheGetCacheStatisticsReq); REQUEST(xFontCacheGetCacheStatisticsReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xFontCacheGetCacheStatisticsReq); REQUEST_SIZE_MATCH(xFontCacheGetCacheStatisticsReq);
@ -297,7 +297,7 @@ static int
SProcFontCacheChangeCacheSettings(client) SProcFontCacheChangeCacheSettings(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xFontCacheChangeCacheSettingsReq); REQUEST(xFontCacheChangeCacheSettingsReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xFontCacheChangeCacheSettingsReq); REQUEST_SIZE_MATCH(xFontCacheChangeCacheSettingsReq);
@ -311,7 +311,7 @@ SProcFontCacheChangeCacheSettings(client)
static int static int
SProcFontCacheDispatch (client) SProcFontCacheDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -282,10 +282,10 @@ ExtensionEntry *extEntry;
static int static int
ProcGetBufferVersion (client) ProcGetBufferVersion (client)
register ClientPtr client; ClientPtr client;
{ {
xMbufGetBufferVersionReply rep; xMbufGetBufferVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH (xMbufGetBufferVersionReq); REQUEST_SIZE_MATCH (xMbufGetBufferVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -441,11 +441,11 @@ CreateImageBuffers (pWin, nbuf, ids, action, hint)
static int static int
ProcCreateImageBuffers (client) ProcCreateImageBuffers (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xMbufCreateImageBuffersReq); REQUEST(xMbufCreateImageBuffersReq);
xMbufCreateImageBuffersReply rep; xMbufCreateImageBuffersReply rep;
register int n; int n;
WindowPtr pWin; WindowPtr pWin;
XID *ids; XID *ids;
int len, nbuf, i, err, rc; int len, nbuf, i, err, rc;
@ -506,7 +506,7 @@ ProcCreateImageBuffers (client)
static int static int
ProcDisplayImageBuffers (client) ProcDisplayImageBuffers (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xMbufDisplayImageBuffersReq); REQUEST(xMbufDisplayImageBuffersReq);
MultibufferPtr *pMultibuffer; MultibufferPtr *pMultibuffer;
@ -579,7 +579,7 @@ MultibufferResType);
static int static int
ProcDestroyImageBuffers (client) ProcDestroyImageBuffers (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST (xMbufDestroyImageBuffersReq); REQUEST (xMbufDestroyImageBuffersReq);
WindowPtr pWin; WindowPtr pWin;
@ -595,7 +595,7 @@ ProcDestroyImageBuffers (client)
static int static int
ProcSetMBufferAttributes (client) ProcSetMBufferAttributes (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST (xMbufSetMBufferAttributesReq); REQUEST (xMbufSetMBufferAttributesReq);
WindowPtr pWin; WindowPtr pWin;
@ -694,7 +694,7 @@ ProcGetMBufferAttributes (client)
static int static int
ProcSetBufferAttributes (client) ProcSetBufferAttributes (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xMbufSetBufferAttributesReq); REQUEST(xMbufSetBufferAttributesReq);
MultibufferPtr pMultibuffer; MultibufferPtr pMultibuffer;
@ -736,7 +736,7 @@ ProcSetBufferAttributes (client)
int int
ProcGetBufferAttributes (client) ProcGetBufferAttributes (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xMbufGetBufferAttributesReq); REQUEST(xMbufGetBufferAttributesReq);
MultibufferPtr pMultibuffer; MultibufferPtr pMultibuffer;
@ -780,7 +780,7 @@ ProcGetBufferAttributes (client)
static int static int
ProcGetBufferInfo (client) ProcGetBufferInfo (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST (xMbufGetBufferInfoReq); REQUEST (xMbufGetBufferInfoReq);
DrawablePtr pDrawable; DrawablePtr pDrawable;
@ -845,7 +845,7 @@ ProcGetBufferInfo (client)
static int static int
ProcClearImageBufferArea (client) ProcClearImageBufferArea (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST (xMbufClearImageBufferAreaReq); REQUEST (xMbufClearImageBufferAreaReq);
MultibufferPtr pMultibuffer; MultibufferPtr pMultibuffer;
@ -907,7 +907,7 @@ ProcClearImageBufferArea (client)
static int static int
ProcMultibufferDispatch (client) ProcMultibufferDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) { switch (stuff->data) {
@ -938,9 +938,9 @@ ProcMultibufferDispatch (client)
static int static int
SProcGetBufferVersion (client) SProcGetBufferVersion (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufGetBufferVersionReq); REQUEST (xMbufGetBufferVersionReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -949,9 +949,9 @@ SProcGetBufferVersion (client)
static int static int
SProcCreateImageBuffers (client) SProcCreateImageBuffers (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufCreateImageBuffersReq); REQUEST (xMbufCreateImageBuffersReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -963,9 +963,9 @@ SProcCreateImageBuffers (client)
static int static int
SProcDisplayImageBuffers (client) SProcDisplayImageBuffers (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufDisplayImageBuffersReq); REQUEST (xMbufDisplayImageBuffersReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -978,9 +978,9 @@ SProcDisplayImageBuffers (client)
static int static int
SProcDestroyImageBuffers (client) SProcDestroyImageBuffers (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufDestroyImageBuffersReq); REQUEST (xMbufDestroyImageBuffersReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -991,9 +991,9 @@ SProcDestroyImageBuffers (client)
static int static int
SProcSetMBufferAttributes (client) SProcSetMBufferAttributes (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufSetMBufferAttributesReq); REQUEST (xMbufSetMBufferAttributesReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1006,9 +1006,9 @@ SProcSetMBufferAttributes (client)
static int static int
SProcGetMBufferAttributes (client) SProcGetMBufferAttributes (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufGetMBufferAttributesReq); REQUEST (xMbufGetMBufferAttributesReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1019,9 +1019,9 @@ SProcGetMBufferAttributes (client)
static int static int
SProcSetBufferAttributes (client) SProcSetBufferAttributes (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufSetBufferAttributesReq); REQUEST (xMbufSetBufferAttributesReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1034,9 +1034,9 @@ SProcSetBufferAttributes (client)
static int static int
SProcGetBufferAttributes (client) SProcGetBufferAttributes (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufGetBufferAttributesReq); REQUEST (xMbufGetBufferAttributesReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1047,9 +1047,9 @@ SProcGetBufferAttributes (client)
static int static int
SProcGetBufferInfo (client) SProcGetBufferInfo (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xMbufGetBufferInfoReq); REQUEST (xMbufGetBufferInfoReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1060,9 +1060,9 @@ SProcGetBufferInfo (client)
static int static int
SProcClearImageBufferArea(client) SProcClearImageBufferArea(client)
register ClientPtr client; ClientPtr client;
{ {
register char n; char n;
REQUEST(xMbufClearImageBufferAreaReq); REQUEST(xMbufClearImageBufferAreaReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -1077,7 +1077,7 @@ SProcClearImageBufferArea(client)
static int static int
SProcMultibufferDispatch (client) SProcMultibufferDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) { switch (stuff->data) {
@ -1297,7 +1297,7 @@ QueueDisplayRequest (client, activateTime)
/* swap the request back so we can simply re-execute it */ /* swap the request back so we can simply re-execute it */
if (client->swapped) if (client->swapped)
{ {
register int n; int n;
REQUEST (xMbufDisplayImageBuffersReq); REQUEST (xMbufDisplayImageBuffersReq);
SwapRestL(stuff); SwapRestL(stuff);
@ -1370,9 +1370,9 @@ MultibufferExpose (pMultibuffer, pRegion)
{ {
xEvent *pEvent; xEvent *pEvent;
PixmapPtr pPixmap; PixmapPtr pPixmap;
register xEvent *pe; xEvent *pe;
register BoxPtr pBox; BoxPtr pBox;
register int i; int i;
int numRects; int numRects;
pPixmap = pMultibuffer->pPixmap; pPixmap = pMultibuffer->pPixmap;
@ -1682,7 +1682,7 @@ OtherClientDelete (value, id)
XID id; XID id;
{ {
MultibufferPtr pMultibuffer = (MultibufferPtr)value; MultibufferPtr pMultibuffer = (MultibufferPtr)value;
register OtherClientsPtr other, prev; OtherClientsPtr other, prev;
prev = 0; prev = 0;
for (other = pMultibuffer->otherClients; other; other = other->next) for (other = pMultibuffer->otherClients; other; other = other->next)

View File

@ -600,9 +600,9 @@ bufDrawSelectPlane(pScreen, selectPlane, prgn, bufferNum)
{ {
DrawablePtr pDrawable; DrawablePtr pDrawable;
GCPtr pGC; GCPtr pGC;
register int i; int i;
register BoxPtr pbox; BoxPtr pbox;
register xRectangle *prect; xRectangle *prect;
int numRects; int numRects;
XID value; XID value;
@ -882,7 +882,7 @@ bufChangeWindowAttributes(pWin, mask)
static void static void
bufWindowExposures(pWin, prgn, other_exposed) bufWindowExposures(pWin, prgn, other_exposed)
WindowPtr pWin; WindowPtr pWin;
register RegionPtr prgn, other_exposed; RegionPtr prgn, other_exposed;
{ {
ScreenPtr pScreen = pWin->drawable.pScreen; ScreenPtr pScreen = pWin->drawable.pScreen;
mbufWindowPtr pMBWindow = MB_WINDOW_PRIV(pWin); mbufWindowPtr pMBWindow = MB_WINDOW_PRIV(pWin);

View File

@ -83,7 +83,7 @@ ExtensionEntry *extEntry;
static int static int
ProcMITSetBugMode(client) ProcMITSetBugMode(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xMITSetBugModeReq); REQUEST(xMITSetBugModeReq);
@ -95,10 +95,10 @@ ProcMITSetBugMode(client)
static int static int
ProcMITGetBugMode(client) ProcMITGetBugMode(client)
register ClientPtr client; ClientPtr client;
{ {
xMITGetBugModeReply rep; xMITGetBugModeReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xMITGetBugModeReq); REQUEST_SIZE_MATCH(xMITGetBugModeReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -115,7 +115,7 @@ ProcMITGetBugMode(client)
static int static int
ProcMITDispatch (client) ProcMITDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)
@ -131,9 +131,9 @@ ProcMITDispatch (client)
static int static int
SProcMITSetBugMode(client) SProcMITSetBugMode(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xMITSetBugModeReq); REQUEST(xMITSetBugModeReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -142,9 +142,9 @@ SProcMITSetBugMode(client)
static int static int
SProcMITGetBugMode(client) SProcMITGetBugMode(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xMITGetBugModeReq); REQUEST(xMITGetBugModeReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -153,7 +153,7 @@ SProcMITGetBugMode(client)
static int static int
SProcMITDispatch (client) SProcMITDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -916,7 +916,7 @@ ProcPanoramiXGetState(ClientPtr client)
REQUEST(xPanoramiXGetStateReq); REQUEST(xPanoramiXGetStateReq);
WindowPtr pWin; WindowPtr pWin;
xPanoramiXGetStateReply rep; xPanoramiXGetStateReply rep;
register int n, rc; int n, rc;
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq); REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
@ -943,7 +943,7 @@ ProcPanoramiXGetScreenCount(ClientPtr client)
REQUEST(xPanoramiXGetScreenCountReq); REQUEST(xPanoramiXGetScreenCountReq);
WindowPtr pWin; WindowPtr pWin;
xPanoramiXGetScreenCountReply rep; xPanoramiXGetScreenCountReply rep;
register int n, rc; int n, rc;
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq); REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
@ -969,7 +969,7 @@ ProcPanoramiXGetScreenSize(ClientPtr client)
REQUEST(xPanoramiXGetScreenSizeReq); REQUEST(xPanoramiXGetScreenSizeReq);
WindowPtr pWin; WindowPtr pWin;
xPanoramiXGetScreenSizeReply rep; xPanoramiXGetScreenSizeReply rep;
register int n, rc; int n, rc;
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq); REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
@ -1014,7 +1014,7 @@ ProcXineramaIsActive(ClientPtr client)
rep.state = !noPanoramiXExtension; rep.state = !noPanoramiXExtension;
#endif #endif
if (client->swapped) { if (client->swapped) {
register int n; int n;
swaps (&rep.sequenceNumber, n); swaps (&rep.sequenceNumber, n);
swapl (&rep.length, n); swapl (&rep.length, n);
swapl (&rep.state, n); swapl (&rep.state, n);
@ -1037,7 +1037,7 @@ ProcXineramaQueryScreens(ClientPtr client)
rep.number = (noPanoramiXExtension) ? 0 : PanoramiXNumScreens; rep.number = (noPanoramiXExtension) ? 0 : PanoramiXNumScreens;
rep.length = rep.number * sz_XineramaScreenInfo >> 2; rep.length = rep.number * sz_XineramaScreenInfo >> 2;
if (client->swapped) { if (client->swapped) {
register int n; int n;
swaps (&rep.sequenceNumber, n); swaps (&rep.sequenceNumber, n);
swapl (&rep.length, n); swapl (&rep.length, n);
swapl (&rep.number, n); swapl (&rep.number, n);
@ -1055,7 +1055,7 @@ ProcXineramaQueryScreens(ClientPtr client)
scratch.height = panoramiXdataPtr[i].height; scratch.height = panoramiXdataPtr[i].height;
if(client->swapped) { if(client->swapped) {
register int n; int n;
swaps (&scratch.x_org, n); swaps (&scratch.x_org, n);
swaps (&scratch.y_org, n); swaps (&scratch.y_org, n);
swaps (&scratch.width, n); swaps (&scratch.width, n);

View File

@ -55,7 +55,7 @@ static int
SProcPanoramiXQueryVersion (ClientPtr client) SProcPanoramiXQueryVersion (ClientPtr client)
{ {
REQUEST(xPanoramiXQueryVersionReq); REQUEST(xPanoramiXQueryVersionReq);
register int n; int n;
swaps(&stuff->length,n); swaps(&stuff->length,n);
REQUEST_SIZE_MATCH (xPanoramiXQueryVersionReq); REQUEST_SIZE_MATCH (xPanoramiXQueryVersionReq);
@ -66,7 +66,7 @@ static int
SProcPanoramiXGetState(ClientPtr client) SProcPanoramiXGetState(ClientPtr client)
{ {
REQUEST(xPanoramiXGetStateReq); REQUEST(xPanoramiXGetStateReq);
register int n; int n;
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq); REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
@ -77,7 +77,7 @@ static int
SProcPanoramiXGetScreenCount(ClientPtr client) SProcPanoramiXGetScreenCount(ClientPtr client)
{ {
REQUEST(xPanoramiXGetScreenCountReq); REQUEST(xPanoramiXGetScreenCountReq);
register int n; int n;
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq); REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
@ -88,7 +88,7 @@ static int
SProcPanoramiXGetScreenSize(ClientPtr client) SProcPanoramiXGetScreenSize(ClientPtr client)
{ {
REQUEST(xPanoramiXGetScreenSizeReq); REQUEST(xPanoramiXGetScreenSizeReq);
register int n; int n;
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq); REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
@ -100,7 +100,7 @@ static int
SProcXineramaIsActive(ClientPtr client) SProcXineramaIsActive(ClientPtr client)
{ {
REQUEST(xXineramaIsActiveReq); REQUEST(xXineramaIsActiveReq);
register int n; int n;
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xXineramaIsActiveReq); REQUEST_SIZE_MATCH(xXineramaIsActiveReq);
@ -112,7 +112,7 @@ static int
SProcXineramaQueryScreens(ClientPtr client) SProcXineramaQueryScreens(ClientPtr client)
{ {
REQUEST(xXineramaQueryScreensReq); REQUEST(xXineramaQueryScreensReq);
register int n; int n;
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xXineramaQueryScreensReq); REQUEST_SIZE_MATCH(xXineramaQueryScreensReq);

View File

@ -46,7 +46,7 @@ static int sampleGetVisualInfo(
VisualID32 *temp_conflict; VisualID32 *temp_conflict;
xExtendedVisualInfo *evi; xExtendedVisualInfo *evi;
int max_visuals = 0, max_sz_conflict, sz_conflict = 0; int max_visuals = 0, max_sz_conflict, sz_conflict = 0;
register int visualI, scrI, sz_evi = 0, conflictI, n_conflict; int visualI, scrI, sz_evi = 0, conflictI, n_conflict;
*evi_rn = evi = (xExtendedVisualInfo *)xalloc(max_sz_evi); *evi_rn = evi = (xExtendedVisualInfo *)xalloc(max_sz_evi);
if (!*evi_rn) if (!*evi_rn)
return BadAlloc; return BadAlloc;

View File

@ -755,10 +755,10 @@ ScreenSaverHandle (pScreen, xstate, force)
static int static int
ProcScreenSaverQueryVersion (client) ProcScreenSaverQueryVersion (client)
register ClientPtr client; ClientPtr client;
{ {
xScreenSaverQueryVersionReply rep; xScreenSaverQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH (xScreenSaverQueryVersionReq); REQUEST_SIZE_MATCH (xScreenSaverQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -776,11 +776,11 @@ ProcScreenSaverQueryVersion (client)
static int static int
ProcScreenSaverQueryInfo (client) ProcScreenSaverQueryInfo (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xScreenSaverQueryInfoReq); REQUEST(xScreenSaverQueryInfoReq);
xScreenSaverQueryInfoReply rep; xScreenSaverQueryInfoReply rep;
register int n, rc; int n, rc;
ScreenSaverStuffPtr pSaver; ScreenSaverStuffPtr pSaver;
DrawablePtr pDraw; DrawablePtr pDraw;
CARD32 lastInput; CARD32 lastInput;
@ -849,7 +849,7 @@ ProcScreenSaverQueryInfo (client)
static int static int
ProcScreenSaverSelectInput (client) ProcScreenSaverSelectInput (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xScreenSaverSelectInputReq); REQUEST(xScreenSaverSelectInputReq);
DrawablePtr pDraw; DrawablePtr pDraw;

View File

@ -336,7 +336,7 @@ ProcSecurityQueryVersion(
rep.minorVersion = SECURITY_MINOR_VERSION; rep.minorVersion = SECURITY_MINOR_VERSION;
if(client->swapped) if(client->swapped)
{ {
register char n; char n;
swaps(&rep.sequenceNumber, n); swaps(&rep.sequenceNumber, n);
swaps(&rep.majorVersion, n); swaps(&rep.majorVersion, n);
swaps(&rep.minorVersion, n); swaps(&rep.minorVersion, n);
@ -554,7 +554,7 @@ ProcSecurityGenerateAuthorization(
if (client->swapped) if (client->swapped)
{ {
register char n; char n;
swapl(&rep.length, n); swapl(&rep.length, n);
swaps(&rep.sequenceNumber, n); swaps(&rep.sequenceNumber, n);
swapl(&rep.authId, n); swapl(&rep.authId, n);
@ -633,7 +633,7 @@ SProcSecurityQueryVersion(
ClientPtr client) ClientPtr client)
{ {
REQUEST(xSecurityQueryVersionReq); REQUEST(xSecurityQueryVersionReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xSecurityQueryVersionReq); REQUEST_SIZE_MATCH(xSecurityQueryVersionReq);
@ -648,7 +648,7 @@ SProcSecurityGenerateAuthorization(
ClientPtr client) ClientPtr client)
{ {
REQUEST(xSecurityGenerateAuthorizationReq); REQUEST(xSecurityGenerateAuthorizationReq);
register char n; char n;
CARD32 *values; CARD32 *values;
unsigned long nvalues; unsigned long nvalues;
@ -671,7 +671,7 @@ SProcSecurityRevokeAuthorization(
ClientPtr client) ClientPtr client)
{ {
REQUEST(xSecurityRevokeAuthorizationReq); REQUEST(xSecurityRevokeAuthorizationReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xSecurityRevokeAuthorizationReq); REQUEST_SIZE_MATCH(xSecurityRevokeAuthorizationReq);

View File

@ -282,10 +282,10 @@ CreateClipShape (pWin)
static int static int
ProcShapeQueryVersion (client) ProcShapeQueryVersion (client)
register ClientPtr client; ClientPtr client;
{ {
xShapeQueryVersionReply rep; xShapeQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH (xShapeQueryVersionReq); REQUEST_SIZE_MATCH (xShapeQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -310,7 +310,7 @@ ProcShapeQueryVersion (client)
static int static int
ProcShapeRectangles (client) ProcShapeRectangles (client)
register ClientPtr client; ClientPtr client;
{ {
WindowPtr pWin; WindowPtr pWin;
ScreenPtr pScreen; ScreenPtr pScreen;
@ -381,7 +381,7 @@ ProcShapeRectangles (client)
#ifdef PANORAMIX #ifdef PANORAMIX
static int static int
ProcPanoramiXShapeRectangles( ProcPanoramiXShapeRectangles(
register ClientPtr client) ClientPtr client)
{ {
REQUEST(xShapeRectanglesReq); REQUEST(xShapeRectanglesReq);
PanoramiXRes *win; PanoramiXRes *win;
@ -410,7 +410,7 @@ ProcPanoramiXShapeRectangles(
static int static int
ProcShapeMask (client) ProcShapeMask (client)
register ClientPtr client; ClientPtr client;
{ {
WindowPtr pWin; WindowPtr pWin;
ScreenPtr pScreen; ScreenPtr pScreen;
@ -480,7 +480,7 @@ ProcShapeMask (client)
#ifdef PANORAMIX #ifdef PANORAMIX
static int static int
ProcPanoramiXShapeMask( ProcPanoramiXShapeMask(
register ClientPtr client) ClientPtr client)
{ {
REQUEST(xShapeMaskReq); REQUEST(xShapeMaskReq);
PanoramiXRes *win, *pmap; PanoramiXRes *win, *pmap;
@ -517,7 +517,7 @@ ProcPanoramiXShapeMask(
static int static int
ProcShapeCombine (client) ProcShapeCombine (client)
register ClientPtr client; ClientPtr client;
{ {
WindowPtr pSrcWin, pDestWin; WindowPtr pSrcWin, pDestWin;
ScreenPtr pScreen; ScreenPtr pScreen;
@ -609,7 +609,7 @@ ProcShapeCombine (client)
#ifdef PANORAMIX #ifdef PANORAMIX
static int static int
ProcPanoramiXShapeCombine( ProcPanoramiXShapeCombine(
register ClientPtr client) ClientPtr client)
{ {
REQUEST(xShapeCombineReq); REQUEST(xShapeCombineReq);
PanoramiXRes *win, *win2; PanoramiXRes *win, *win2;
@ -641,7 +641,7 @@ ProcPanoramiXShapeCombine(
static int static int
ProcShapeOffset (client) ProcShapeOffset (client)
register ClientPtr client; ClientPtr client;
{ {
WindowPtr pWin; WindowPtr pWin;
ScreenPtr pScreen; ScreenPtr pScreen;
@ -682,7 +682,7 @@ ProcShapeOffset (client)
#ifdef PANORAMIX #ifdef PANORAMIX
static int static int
ProcPanoramiXShapeOffset( ProcPanoramiXShapeOffset(
register ClientPtr client) ClientPtr client)
{ {
REQUEST(xShapeOffsetReq); REQUEST(xShapeOffsetReq);
PanoramiXRes *win; PanoramiXRes *win;
@ -706,13 +706,13 @@ ProcPanoramiXShapeOffset(
static int static int
ProcShapeQueryExtents (client) ProcShapeQueryExtents (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xShapeQueryExtentsReq); REQUEST(xShapeQueryExtentsReq);
WindowPtr pWin; WindowPtr pWin;
xShapeQueryExtentsReply rep; xShapeQueryExtentsReply rep;
BoxRec extents, *pExtents; BoxRec extents, *pExtents;
register int n, rc; int n, rc;
RegionPtr region; RegionPtr region;
REQUEST_SIZE_MATCH (xShapeQueryExtentsReq); REQUEST_SIZE_MATCH (xShapeQueryExtentsReq);
@ -817,7 +817,7 @@ ShapeFreeEvents (data, id)
static int static int
ProcShapeSelectInput (client) ProcShapeSelectInput (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xShapeSelectInputReq); REQUEST(xShapeSelectInputReq);
WindowPtr pWin; WindowPtr pWin;
@ -989,14 +989,14 @@ SendShapeNotify (pWin, which)
static int static int
ProcShapeInputSelected (client) ProcShapeInputSelected (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xShapeInputSelectedReq); REQUEST(xShapeInputSelectedReq);
WindowPtr pWin; WindowPtr pWin;
ShapeEventPtr pShapeEvent, *pHead; ShapeEventPtr pShapeEvent, *pHead;
int enabled, rc; int enabled, rc;
xShapeInputSelectedReply rep; xShapeInputSelectedReply rep;
register int n; int n;
REQUEST_SIZE_MATCH (xShapeInputSelectedReq); REQUEST_SIZE_MATCH (xShapeInputSelectedReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
@ -1030,7 +1030,7 @@ ProcShapeInputSelected (client)
static int static int
ProcShapeGetRectangles (client) ProcShapeGetRectangles (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xShapeGetRectanglesReq); REQUEST(xShapeGetRectanglesReq);
WindowPtr pWin; WindowPtr pWin;
@ -1038,7 +1038,7 @@ ProcShapeGetRectangles (client)
xRectangle *rects; xRectangle *rects;
int nrects, i, rc; int nrects, i, rc;
RegionPtr region; RegionPtr region;
register int n; int n;
REQUEST_SIZE_MATCH(xShapeGetRectanglesReq); REQUEST_SIZE_MATCH(xShapeGetRectanglesReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
@ -1116,7 +1116,7 @@ ProcShapeGetRectangles (client)
static int static int
ProcShapeDispatch (client) ProcShapeDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) { switch (stuff->data) {
@ -1181,9 +1181,9 @@ SShapeNotifyEvent(from, to)
static int static int
SProcShapeQueryVersion (client) SProcShapeQueryVersion (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xShapeQueryVersionReq); REQUEST (xShapeQueryVersionReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1192,9 +1192,9 @@ SProcShapeQueryVersion (client)
static int static int
SProcShapeRectangles (client) SProcShapeRectangles (client)
register ClientPtr client; ClientPtr client;
{ {
register char n; char n;
REQUEST (xShapeRectanglesReq); REQUEST (xShapeRectanglesReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1208,9 +1208,9 @@ SProcShapeRectangles (client)
static int static int
SProcShapeMask (client) SProcShapeMask (client)
register ClientPtr client; ClientPtr client;
{ {
register char n; char n;
REQUEST (xShapeMaskReq); REQUEST (xShapeMaskReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1224,9 +1224,9 @@ SProcShapeMask (client)
static int static int
SProcShapeCombine (client) SProcShapeCombine (client)
register ClientPtr client; ClientPtr client;
{ {
register char n; char n;
REQUEST (xShapeCombineReq); REQUEST (xShapeCombineReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1240,9 +1240,9 @@ SProcShapeCombine (client)
static int static int
SProcShapeOffset (client) SProcShapeOffset (client)
register ClientPtr client; ClientPtr client;
{ {
register char n; char n;
REQUEST (xShapeOffsetReq); REQUEST (xShapeOffsetReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1255,9 +1255,9 @@ SProcShapeOffset (client)
static int static int
SProcShapeQueryExtents (client) SProcShapeQueryExtents (client)
register ClientPtr client; ClientPtr client;
{ {
register char n; char n;
REQUEST (xShapeQueryExtentsReq); REQUEST (xShapeQueryExtentsReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1268,9 +1268,9 @@ SProcShapeQueryExtents (client)
static int static int
SProcShapeSelectInput (client) SProcShapeSelectInput (client)
register ClientPtr client; ClientPtr client;
{ {
register char n; char n;
REQUEST (xShapeSelectInputReq); REQUEST (xShapeSelectInputReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1281,9 +1281,9 @@ SProcShapeSelectInput (client)
static int static int
SProcShapeInputSelected (client) SProcShapeInputSelected (client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST (xShapeInputSelectedReq); REQUEST (xShapeInputSelectedReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -1294,10 +1294,10 @@ SProcShapeInputSelected (client)
static int static int
SProcShapeGetRectangles (client) SProcShapeGetRectangles (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xShapeGetRectanglesReq); REQUEST(xShapeGetRectanglesReq);
register char n; char n;
swaps (&stuff->length, n); swaps (&stuff->length, n);
REQUEST_SIZE_MATCH(xShapeGetRectanglesReq); REQUEST_SIZE_MATCH(xShapeGetRectanglesReq);
@ -1307,7 +1307,7 @@ SProcShapeGetRectangles (client)
static int static int
SProcShapeDispatch (client) SProcShapeDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) { switch (stuff->data) {

View File

@ -343,10 +343,10 @@ ShmRegisterFbFuncs(pScreen)
static int static int
ProcShmQueryVersion(client) ProcShmQueryVersion(client)
register ClientPtr client; ClientPtr client;
{ {
xShmQueryVersionReply rep; xShmQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xShmQueryVersionReq); REQUEST_SIZE_MATCH(xShmQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -438,7 +438,7 @@ shm_access(ClientPtr client, SHMPERM_TYPE *perm, int readonly)
static int static int
ProcShmAttach(client) ProcShmAttach(client)
register ClientPtr client; ClientPtr client;
{ {
SHMSTAT_TYPE buf; SHMSTAT_TYPE buf;
ShmDescPtr shmdesc; ShmDescPtr shmdesc;
@ -518,7 +518,7 @@ ShmDetachSegment(value, shmseg)
static int static int
ProcShmDetach(client) ProcShmDetach(client)
register ClientPtr client; ClientPtr client;
{ {
ShmDescPtr shmdesc; ShmDescPtr shmdesc;
REQUEST(xShmDetachReq); REQUEST(xShmDetachReq);
@ -595,7 +595,7 @@ fbShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy, data)
#ifdef PANORAMIX #ifdef PANORAMIX
static int static int
ProcPanoramiXShmPutImage(register ClientPtr client) ProcPanoramiXShmPutImage(ClientPtr client)
{ {
int j, result = 0, orig_x, orig_y; int j, result = 0, orig_x, orig_y;
PanoramiXRes *draw, *gc; PanoramiXRes *draw, *gc;
@ -742,7 +742,7 @@ ProcPanoramiXShmGetImage(ClientPtr client)
} }
if (client->swapped) { if (client->swapped) {
register int n; int n;
swaps(&xgi.sequenceNumber, n); swaps(&xgi.sequenceNumber, n);
swapl(&xgi.length, n); swapl(&xgi.length, n);
swapl(&xgi.visual, n); swapl(&xgi.visual, n);
@ -755,7 +755,7 @@ ProcPanoramiXShmGetImage(ClientPtr client)
static int static int
ProcPanoramiXShmCreatePixmap( ProcPanoramiXShmCreatePixmap(
register ClientPtr client) ClientPtr client)
{ {
ScreenPtr pScreen = NULL; ScreenPtr pScreen = NULL;
PixmapPtr pMap = NULL; PixmapPtr pMap = NULL;
@ -846,7 +846,7 @@ CreatePmap:
static int static int
ProcShmPutImage(client) ProcShmPutImage(client)
register ClientPtr client; ClientPtr client;
{ {
GCPtr pGC; GCPtr pGC;
DrawablePtr pDraw; DrawablePtr pDraw;
@ -950,7 +950,7 @@ ProcShmPutImage(client)
static int static int
ProcShmGetImage(client) ProcShmGetImage(client)
register ClientPtr client; ClientPtr client;
{ {
DrawablePtr pDraw; DrawablePtr pDraw;
long lenPer = 0, length; long lenPer = 0, length;
@ -1069,7 +1069,7 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr)
int depth; int depth;
char *addr; char *addr;
{ {
register PixmapPtr pPixmap; PixmapPtr pPixmap;
pPixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, pScreen->rootDepth, 0); pPixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, pScreen->rootDepth, 0);
if (!pPixmap) if (!pPixmap)
@ -1085,12 +1085,12 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr)
static int static int
ProcShmCreatePixmap(client) ProcShmCreatePixmap(client)
register ClientPtr client; ClientPtr client;
{ {
PixmapPtr pMap; PixmapPtr pMap;
DrawablePtr pDraw; DrawablePtr pDraw;
DepthPtr pDepth; DepthPtr pDepth;
register int i, rc; int i, rc;
ShmDescPtr shmdesc; ShmDescPtr shmdesc;
REQUEST(xShmCreatePixmapReq); REQUEST(xShmCreatePixmapReq);
@ -1143,7 +1143,7 @@ CreatePmap:
static int static int
ProcShmDispatch (client) ProcShmDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)
@ -1192,9 +1192,9 @@ SShmCompletionEvent(from, to)
static int static int
SProcShmQueryVersion(client) SProcShmQueryVersion(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xShmQueryVersionReq); REQUEST(xShmQueryVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -1205,7 +1205,7 @@ static int
SProcShmAttach(client) SProcShmAttach(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xShmAttachReq); REQUEST(xShmAttachReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xShmAttachReq); REQUEST_SIZE_MATCH(xShmAttachReq);
@ -1218,7 +1218,7 @@ static int
SProcShmDetach(client) SProcShmDetach(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xShmDetachReq); REQUEST(xShmDetachReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xShmDetachReq); REQUEST_SIZE_MATCH(xShmDetachReq);
@ -1230,7 +1230,7 @@ static int
SProcShmPutImage(client) SProcShmPutImage(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xShmPutImageReq); REQUEST(xShmPutImageReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xShmPutImageReq); REQUEST_SIZE_MATCH(xShmPutImageReq);
@ -1253,7 +1253,7 @@ static int
SProcShmGetImage(client) SProcShmGetImage(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xShmGetImageReq); REQUEST(xShmGetImageReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xShmGetImageReq); REQUEST_SIZE_MATCH(xShmGetImageReq);
@ -1272,7 +1272,7 @@ static int
SProcShmCreatePixmap(client) SProcShmCreatePixmap(client)
ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xShmCreatePixmapReq); REQUEST(xShmCreatePixmapReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH(xShmCreatePixmapReq); REQUEST_SIZE_MATCH(xShmCreatePixmapReq);
@ -1287,7 +1287,7 @@ SProcShmCreatePixmap(client)
static int static int
SProcShmDispatch (client) SProcShmDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -1405,7 +1405,7 @@ ProcSyncListSystemCounters(client)
if (client->swapped) if (client->swapped)
{ {
register char n; char n;
swaps(&rep.sequenceNumber, n); swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n); swapl(&rep.length, n);
swapl(&rep.nCounters, n); swapl(&rep.nCounters, n);
@ -1425,7 +1425,7 @@ ProcSyncListSystemCounters(client)
if (client->swapped) if (client->swapped)
{ {
register char n; char n;
swapl(&walklist->counter, n); swapl(&walklist->counter, n);
swapl(&walklist->resolution_hi, n); swapl(&walklist->resolution_hi, n);
swapl(&walklist->resolution_lo, n); swapl(&walklist->resolution_lo, n);
@ -1514,7 +1514,7 @@ ProcSyncGetPriority(client)
if (client->swapped) if (client->swapped)
{ {
register char n; char n;
swaps(&rep.sequenceNumber, n); swaps(&rep.sequenceNumber, n);
swapl(&rep.priority, n); swapl(&rep.priority, n);
} }
@ -1799,7 +1799,7 @@ ProcSyncQueryCounter(client)
rep.value_lo = XSyncValueLow32(pCounter->value); rep.value_lo = XSyncValueLow32(pCounter->value);
if (client->swapped) if (client->swapped)
{ {
register char n; char n;
swaps(&rep.sequenceNumber, n); swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n); swapl(&rep.length, n);
swapl(&rep.value_hi, n); swapl(&rep.value_hi, n);
@ -1981,7 +1981,7 @@ ProcSyncQueryAlarm(client)
if (client->swapped) if (client->swapped)
{ {
register char n; char n;
swaps(&rep.sequenceNumber, n); swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n); swapl(&rep.length, n);
swapl(&rep.counter, n); swapl(&rep.counter, n);
@ -2070,7 +2070,7 @@ SProcSyncInitialize(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncInitializeReq); REQUEST(xSyncInitializeReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncInitializeReq); REQUEST_SIZE_MATCH (xSyncInitializeReq);
@ -2083,7 +2083,7 @@ SProcSyncListSystemCounters(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncListSystemCountersReq); REQUEST(xSyncListSystemCountersReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncListSystemCountersReq); REQUEST_SIZE_MATCH (xSyncListSystemCountersReq);
@ -2096,7 +2096,7 @@ SProcSyncCreateCounter(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncCreateCounterReq); REQUEST(xSyncCreateCounterReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncCreateCounterReq); REQUEST_SIZE_MATCH (xSyncCreateCounterReq);
@ -2112,7 +2112,7 @@ SProcSyncSetCounter(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncSetCounterReq); REQUEST(xSyncSetCounterReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncSetCounterReq); REQUEST_SIZE_MATCH (xSyncSetCounterReq);
@ -2128,7 +2128,7 @@ SProcSyncChangeCounter(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncChangeCounterReq); REQUEST(xSyncChangeCounterReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncChangeCounterReq); REQUEST_SIZE_MATCH (xSyncChangeCounterReq);
@ -2144,7 +2144,7 @@ SProcSyncQueryCounter(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncQueryCounterReq); REQUEST(xSyncQueryCounterReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncQueryCounterReq); REQUEST_SIZE_MATCH (xSyncQueryCounterReq);
@ -2158,7 +2158,7 @@ SProcSyncDestroyCounter(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncDestroyCounterReq); REQUEST(xSyncDestroyCounterReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncDestroyCounterReq); REQUEST_SIZE_MATCH (xSyncDestroyCounterReq);
@ -2172,7 +2172,7 @@ SProcSyncAwait(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncAwaitReq); REQUEST(xSyncAwaitReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xSyncAwaitReq); REQUEST_AT_LEAST_SIZE(xSyncAwaitReq);
@ -2187,7 +2187,7 @@ SProcSyncCreateAlarm(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncCreateAlarmReq); REQUEST(xSyncCreateAlarmReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xSyncCreateAlarmReq); REQUEST_AT_LEAST_SIZE(xSyncCreateAlarmReq);
@ -2203,7 +2203,7 @@ SProcSyncChangeAlarm(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncChangeAlarmReq); REQUEST(xSyncChangeAlarmReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xSyncChangeAlarmReq); REQUEST_AT_LEAST_SIZE(xSyncChangeAlarmReq);
@ -2218,7 +2218,7 @@ SProcSyncQueryAlarm(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncQueryAlarmReq); REQUEST(xSyncQueryAlarmReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncQueryAlarmReq); REQUEST_SIZE_MATCH (xSyncQueryAlarmReq);
@ -2232,7 +2232,7 @@ SProcSyncDestroyAlarm(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncDestroyAlarmReq); REQUEST(xSyncDestroyAlarmReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncDestroyAlarmReq); REQUEST_SIZE_MATCH (xSyncDestroyAlarmReq);
@ -2246,7 +2246,7 @@ SProcSyncSetPriority(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncSetPriorityReq); REQUEST(xSyncSetPriorityReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncSetPriorityReq); REQUEST_SIZE_MATCH (xSyncSetPriorityReq);
@ -2261,7 +2261,7 @@ SProcSyncGetPriority(client)
ClientPtr client; ClientPtr client;
{ {
REQUEST(xSyncGetPriorityReq); REQUEST(xSyncGetPriorityReq);
register char n; char n;
swaps(&stuff->length, n); swaps(&stuff->length, n);
REQUEST_SIZE_MATCH (xSyncGetPriorityReq); REQUEST_SIZE_MATCH (xSyncGetPriorityReq);

View File

@ -93,10 +93,10 @@ XCMiscResetProc (extEntry)
static int static int
ProcXCMiscGetVersion(client) ProcXCMiscGetVersion(client)
register ClientPtr client; ClientPtr client;
{ {
xXCMiscGetVersionReply rep; xXCMiscGetVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xXCMiscGetVersionReq); REQUEST_SIZE_MATCH(xXCMiscGetVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -115,10 +115,10 @@ ProcXCMiscGetVersion(client)
static int static int
ProcXCMiscGetXIDRange(client) ProcXCMiscGetXIDRange(client)
register ClientPtr client; ClientPtr client;
{ {
xXCMiscGetXIDRangeReply rep; xXCMiscGetXIDRangeReply rep;
register int n; int n;
XID min_id, max_id; XID min_id, max_id;
REQUEST_SIZE_MATCH(xXCMiscGetXIDRangeReq); REQUEST_SIZE_MATCH(xXCMiscGetXIDRangeReq);
@ -139,11 +139,11 @@ ProcXCMiscGetXIDRange(client)
static int static int
ProcXCMiscGetXIDList(client) ProcXCMiscGetXIDList(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xXCMiscGetXIDListReq); REQUEST(xXCMiscGetXIDListReq);
xXCMiscGetXIDListReply rep; xXCMiscGetXIDListReply rep;
register int n; int n;
XID *pids; XID *pids;
unsigned int count; unsigned int count;
@ -179,7 +179,7 @@ ProcXCMiscGetXIDList(client)
static int static int
ProcXCMiscDispatch (client) ProcXCMiscDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)
@ -197,9 +197,9 @@ ProcXCMiscDispatch (client)
static int static int
SProcXCMiscGetVersion(client) SProcXCMiscGetVersion(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xXCMiscGetVersionReq); REQUEST(xXCMiscGetVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -211,9 +211,9 @@ SProcXCMiscGetVersion(client)
static int static int
SProcXCMiscGetXIDRange(client) SProcXCMiscGetXIDRange(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xReq); REQUEST(xReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -222,9 +222,9 @@ SProcXCMiscGetXIDRange(client)
static int static int
SProcXCMiscGetXIDList(client) SProcXCMiscGetXIDList(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xXCMiscGetXIDListReq); REQUEST(xXCMiscGetXIDListReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -234,7 +234,7 @@ SProcXCMiscGetXIDList(client)
static int static int
SProcXCMiscDispatch (client) SProcXCMiscDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -63,7 +63,7 @@ extern Bool noXkbExtension;
#endif #endif
extern int xeviegrabState; extern int xeviegrabState;
static int ProcDispatch (register ClientPtr client), SProcDispatch (register ClientPtr client); static int ProcDispatch (ClientPtr client), SProcDispatch (ClientPtr client);
static void ResetProc (ExtensionEntry *extEntry); static void ResetProc (ExtensionEntry *extEntry);
static unsigned char ReqCode = 0; static unsigned char ReqCode = 0;
@ -164,7 +164,7 @@ void ResetProc (ExtensionEntry *extEntry)
} }
static static
int ProcQueryVersion (register ClientPtr client) int ProcQueryVersion (ClientPtr client)
{ {
xXevieQueryVersionReply rep; xXevieQueryVersionReply rep;
@ -179,7 +179,7 @@ int ProcQueryVersion (register ClientPtr client)
} }
static static
int ProcStart (register ClientPtr client) int ProcStart (ClientPtr client)
{ {
xXevieStartReply rep; xXevieStartReply rep;
@ -220,7 +220,7 @@ int ProcStart (register ClientPtr client)
} }
static static
int ProcEnd (register ClientPtr client) int ProcEnd (ClientPtr client)
{ {
xXevieEndReply rep; xXevieEndReply rep;
@ -239,7 +239,7 @@ int ProcEnd (register ClientPtr client)
} }
static static
int ProcSend (register ClientPtr client) int ProcSend (ClientPtr client)
{ {
REQUEST (xXevieSendReq); REQUEST (xXevieSendReq);
xXevieSendReply rep; xXevieSendReply rep;
@ -285,7 +285,7 @@ int ProcSend (register ClientPtr client)
} }
static static
int ProcSelectInput (register ClientPtr client) int ProcSelectInput (ClientPtr client)
{ {
REQUEST (xXevieSelectInputReq); REQUEST (xXevieSelectInputReq);
xXevieSelectInputReply rep; xXevieSelectInputReply rep;
@ -301,7 +301,7 @@ int ProcSelectInput (register ClientPtr client)
} }
static static
int ProcDispatch (register ClientPtr client) int ProcDispatch (ClientPtr client)
{ {
REQUEST (xReq); REQUEST (xReq);
switch (stuff->data) switch (stuff->data)
@ -322,9 +322,9 @@ int ProcDispatch (register ClientPtr client)
} }
static static
int SProcQueryVersion (register ClientPtr client) int SProcQueryVersion (ClientPtr client)
{ {
register int n; int n;
REQUEST(xXevieQueryVersionReq); REQUEST(xXevieQueryVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -334,7 +334,7 @@ int SProcQueryVersion (register ClientPtr client)
static static
int SProcStart (ClientPtr client) int SProcStart (ClientPtr client)
{ {
register int n; int n;
REQUEST (xXevieStartReq); REQUEST (xXevieStartReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -346,7 +346,7 @@ int SProcStart (ClientPtr client)
static static
int SProcEnd (ClientPtr client) int SProcEnd (ClientPtr client)
{ {
register int n; int n;
REQUEST (xXevieEndReq); REQUEST (xXevieEndReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -358,7 +358,7 @@ int SProcEnd (ClientPtr client)
static static
int SProcSend (ClientPtr client) int SProcSend (ClientPtr client)
{ {
register int n; int n;
REQUEST (xXevieSendReq); REQUEST (xXevieSendReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -370,7 +370,7 @@ int SProcSend (ClientPtr client)
static static
int SProcSelectInput (ClientPtr client) int SProcSelectInput (ClientPtr client)
{ {
register int n; int n;
REQUEST (xXevieSelectInputReq); REQUEST (xXevieSelectInputReq);
swaps (&stuff->length, n); swaps (&stuff->length, n);
@ -381,7 +381,7 @@ int SProcSelectInput (ClientPtr client)
static static
int SProcDispatch (register ClientPtr client) int SProcDispatch (ClientPtr client)
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -570,7 +570,7 @@ ProcXpQueryVersion(ClientPtr client)
{ {
/* REQUEST(xPrintQueryVersionReq); */ /* REQUEST(xPrintQueryVersionReq); */
xPrintQueryVersionReply rep; xPrintQueryVersionReply rep;
register int n; int n;
long l; long l;
REQUEST_SIZE_MATCH(xPrintQueryVersionReq); REQUEST_SIZE_MATCH(xPrintQueryVersionReq);
@ -1101,8 +1101,8 @@ ProcXpGetContext(ClientPtr client)
xPrintGetContextReply rep; xPrintGetContextReply rep;
XpContextPtr pContext; XpContextPtr pContext;
register int n; int n;
register long l; long l;
REQUEST_SIZE_MATCH(xPrintGetContextReq); REQUEST_SIZE_MATCH(xPrintGetContextReq);
@ -1383,11 +1383,11 @@ XpFreePage(pointer data, XID id)
static void static void
InitContextPrivates(XpContextPtr context) InitContextPrivates(XpContextPtr context)
{ {
register char *ptr; char *ptr;
DevUnion *ppriv; DevUnion *ppriv;
register unsigned *sizes; unsigned *sizes;
register unsigned size; unsigned size;
register int i; int i;
if (totalContextSize == sizeof(XpContextRec)) if (totalContextSize == sizeof(XpContextRec))
ppriv = (DevUnion *)NULL; ppriv = (DevUnion *)NULL;
@ -2330,7 +2330,7 @@ ProcXpInputSelected(ClientPtr client)
{ {
REQUEST(xPrintInputSelectedReq); REQUEST(xPrintInputSelectedReq);
xPrintInputSelectedReply rep; xPrintInputSelectedReply rep;
register int n; int n;
long l; long l;
XpClientPtr pXpClient; XpClientPtr pXpClient;
XpContextPtr pContext; XpContextPtr pContext;

View File

@ -93,7 +93,7 @@ ProcXResQueryClients (ClientPtr client)
scratch.resource_mask = RESOURCE_ID_MASK; scratch.resource_mask = RESOURCE_ID_MASK;
if(client->swapped) { if(client->swapped) {
register int n; int n;
swapl (&scratch.resource_base, n); swapl (&scratch.resource_base, n);
swapl (&scratch.resource_mask, n); swapl (&scratch.resource_mask, n);
} }
@ -175,7 +175,7 @@ ProcXResQueryClientResources (ClientPtr client)
scratch.count = counts[i]; scratch.count = counts[i];
if(client->swapped) { if(client->swapped) {
register int n; int n;
swapl (&scratch.resource_type, n); swapl (&scratch.resource_type, n);
swapl (&scratch.count, n); swapl (&scratch.count, n);
} }

View File

@ -112,10 +112,10 @@ ExtensionEntry *extEntry;
static int static int
ProcXTestGetVersion(client) ProcXTestGetVersion(client)
register ClientPtr client; ClientPtr client;
{ {
xXTestGetVersionReply rep; xXTestGetVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xXTestGetVersionReq); REQUEST_SIZE_MATCH(xXTestGetVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -133,13 +133,13 @@ ProcXTestGetVersion(client)
static int static int
ProcXTestCompareCursor(client) ProcXTestCompareCursor(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xXTestCompareCursorReq); REQUEST(xXTestCompareCursorReq);
xXTestCompareCursorReply rep; xXTestCompareCursorReply rep;
WindowPtr pWin; WindowPtr pWin;
CursorPtr pCursor; CursorPtr pCursor;
register int n, rc; int n, rc;
REQUEST_SIZE_MATCH(xXTestCompareCursorReq); REQUEST_SIZE_MATCH(xXTestCompareCursorReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
@ -170,7 +170,7 @@ ProcXTestCompareCursor(client)
static int static int
ProcXTestFakeInput(client) ProcXTestFakeInput(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xXTestFakeInputReq); REQUEST(xXTestFakeInputReq);
int nev, n, type, rc; int nev, n, type, rc;
@ -468,7 +468,7 @@ ProcXTestFakeInput(client)
static int static int
ProcXTestGrabControl(client) ProcXTestGrabControl(client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xXTestGrabControlReq); REQUEST(xXTestGrabControlReq);
@ -487,7 +487,7 @@ ProcXTestGrabControl(client)
static int static int
ProcXTestDispatch (client) ProcXTestDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)
@ -507,9 +507,9 @@ ProcXTestDispatch (client)
static int static int
SProcXTestGetVersion(client) SProcXTestGetVersion(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xXTestGetVersionReq); REQUEST(xXTestGetVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -520,9 +520,9 @@ SProcXTestGetVersion(client)
static int static int
SProcXTestCompareCursor(client) SProcXTestCompareCursor(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xXTestCompareCursorReq); REQUEST(xXTestCompareCursorReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -534,11 +534,11 @@ SProcXTestCompareCursor(client)
static int static int
XTestSwapFakeInput(client, req) XTestSwapFakeInput(client, req)
register ClientPtr client; ClientPtr client;
xReq *req; xReq *req;
{ {
register int nev; int nev;
register xEvent *ev; xEvent *ev;
xEvent sev; xEvent sev;
EventSwapPtr proc; EventSwapPtr proc;
@ -560,9 +560,9 @@ XTestSwapFakeInput(client, req)
static int static int
SProcXTestFakeInput(client) SProcXTestFakeInput(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xReq); REQUEST(xReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -574,9 +574,9 @@ SProcXTestFakeInput(client)
static int static int
SProcXTestGrabControl(client) SProcXTestGrabControl(client)
register ClientPtr client; ClientPtr client;
{ {
register int n; int n;
REQUEST(xXTestGrabControlReq); REQUEST(xXTestGrabControlReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
@ -586,7 +586,7 @@ SProcXTestGrabControl(client)
static int static int
SProcXTestDispatch (client) SProcXTestDispatch (client)
register ClientPtr client; ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
switch (stuff->data) switch (stuff->data)

View File

@ -1334,7 +1334,7 @@ ProcXvListImageFormats(ClientPtr client)
static int static int
SProcXvQueryExtension(ClientPtr client) SProcXvQueryExtension(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvQueryExtensionReq); REQUEST(xvQueryExtensionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
return ProcXvQueryExtension(client); return ProcXvQueryExtension(client);
@ -1343,7 +1343,7 @@ SProcXvQueryExtension(ClientPtr client)
static int static int
SProcXvQueryAdaptors(ClientPtr client) SProcXvQueryAdaptors(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvQueryAdaptorsReq); REQUEST(xvQueryAdaptorsReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->window, n); swapl(&stuff->window, n);
@ -1353,7 +1353,7 @@ SProcXvQueryAdaptors(ClientPtr client)
static int static int
SProcXvQueryEncodings(ClientPtr client) SProcXvQueryEncodings(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvQueryEncodingsReq); REQUEST(xvQueryEncodingsReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1363,7 +1363,7 @@ SProcXvQueryEncodings(ClientPtr client)
static int static int
SProcXvGrabPort(ClientPtr client) SProcXvGrabPort(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvGrabPortReq); REQUEST(xvGrabPortReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1374,7 +1374,7 @@ SProcXvGrabPort(ClientPtr client)
static int static int
SProcXvUngrabPort(ClientPtr client) SProcXvUngrabPort(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvUngrabPortReq); REQUEST(xvUngrabPortReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1385,7 +1385,7 @@ SProcXvUngrabPort(ClientPtr client)
static int static int
SProcXvPutVideo(ClientPtr client) SProcXvPutVideo(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvPutVideoReq); REQUEST(xvPutVideoReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1405,7 +1405,7 @@ SProcXvPutVideo(ClientPtr client)
static int static int
SProcXvPutStill(ClientPtr client) SProcXvPutStill(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvPutStillReq); REQUEST(xvPutStillReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1425,7 +1425,7 @@ SProcXvPutStill(ClientPtr client)
static int static int
SProcXvGetVideo(ClientPtr client) SProcXvGetVideo(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvGetVideoReq); REQUEST(xvGetVideoReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1445,7 +1445,7 @@ SProcXvGetVideo(ClientPtr client)
static int static int
SProcXvGetStill(ClientPtr client) SProcXvGetStill(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvGetStillReq); REQUEST(xvGetStillReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1465,7 +1465,7 @@ SProcXvGetStill(ClientPtr client)
static int static int
SProcXvPutImage(ClientPtr client) SProcXvPutImage(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvPutImageReq); REQUEST(xvPutImageReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1489,7 +1489,7 @@ SProcXvPutImage(ClientPtr client)
static int static int
SProcXvShmPutImage(ClientPtr client) SProcXvShmPutImage(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvShmPutImageReq); REQUEST(xvShmPutImageReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1516,7 +1516,7 @@ SProcXvShmPutImage(ClientPtr client)
static int static int
SProcXvSelectVideoNotify(ClientPtr client) SProcXvSelectVideoNotify(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvSelectVideoNotifyReq); REQUEST(xvSelectVideoNotifyReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->drawable, n); swapl(&stuff->drawable, n);
@ -1526,7 +1526,7 @@ SProcXvSelectVideoNotify(ClientPtr client)
static int static int
SProcXvSelectPortNotify(ClientPtr client) SProcXvSelectPortNotify(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvSelectPortNotifyReq); REQUEST(xvSelectPortNotifyReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1536,7 +1536,7 @@ SProcXvSelectPortNotify(ClientPtr client)
static int static int
SProcXvStopVideo(ClientPtr client) SProcXvStopVideo(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvStopVideoReq); REQUEST(xvStopVideoReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1547,7 +1547,7 @@ SProcXvStopVideo(ClientPtr client)
static int static int
SProcXvSetPortAttribute(ClientPtr client) SProcXvSetPortAttribute(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvSetPortAttributeReq); REQUEST(xvSetPortAttributeReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1558,7 +1558,7 @@ SProcXvSetPortAttribute(ClientPtr client)
static int static int
SProcXvGetPortAttribute(ClientPtr client) SProcXvGetPortAttribute(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvGetPortAttributeReq); REQUEST(xvGetPortAttributeReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1569,7 +1569,7 @@ SProcXvGetPortAttribute(ClientPtr client)
static int static int
SProcXvQueryBestSize(ClientPtr client) SProcXvQueryBestSize(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvQueryBestSizeReq); REQUEST(xvQueryBestSizeReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1583,7 +1583,7 @@ SProcXvQueryBestSize(ClientPtr client)
static int static int
SProcXvQueryPortAttributes(ClientPtr client) SProcXvQueryPortAttributes(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvQueryPortAttributesReq); REQUEST(xvQueryPortAttributesReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1593,7 +1593,7 @@ SProcXvQueryPortAttributes(ClientPtr client)
static int static int
SProcXvQueryImageAttributes(ClientPtr client) SProcXvQueryImageAttributes(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvQueryImageAttributesReq); REQUEST(xvQueryImageAttributesReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->id, n); swapl(&stuff->id, n);
@ -1605,7 +1605,7 @@ SProcXvQueryImageAttributes(ClientPtr client)
static int static int
SProcXvListImageFormats(ClientPtr client) SProcXvListImageFormats(ClientPtr client)
{ {
register char n; char n;
REQUEST(xvListImageFormatsReq); REQUEST(xvListImageFormatsReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
swapl(&stuff->port, n); swapl(&stuff->port, n);
@ -1618,7 +1618,7 @@ SWriteQueryExtensionReply(
ClientPtr client, ClientPtr client,
xvQueryExtensionReply *rep xvQueryExtensionReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1635,7 +1635,7 @@ SWriteQueryAdaptorsReply(
ClientPtr client, ClientPtr client,
xvQueryAdaptorsReply *rep xvQueryAdaptorsReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1651,7 +1651,7 @@ SWriteQueryEncodingsReply(
ClientPtr client, ClientPtr client,
xvQueryEncodingsReply *rep xvQueryEncodingsReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1667,7 +1667,7 @@ SWriteAdaptorInfo(
ClientPtr client, ClientPtr client,
xvAdaptorInfo *pAdaptor xvAdaptorInfo *pAdaptor
){ ){
register char n; char n;
swapl(&pAdaptor->base_id, n); swapl(&pAdaptor->base_id, n);
swaps(&pAdaptor->name_size, n); swaps(&pAdaptor->name_size, n);
@ -1684,7 +1684,7 @@ SWriteEncodingInfo(
ClientPtr client, ClientPtr client,
xvEncodingInfo *pEncoding xvEncodingInfo *pEncoding
){ ){
register char n; char n;
swapl(&pEncoding->encoding, n); swapl(&pEncoding->encoding, n);
swaps(&pEncoding->name_size, n); swaps(&pEncoding->name_size, n);
@ -1702,7 +1702,7 @@ SWriteFormat(
ClientPtr client, ClientPtr client,
xvFormat *pFormat xvFormat *pFormat
){ ){
register char n; char n;
swapl(&pFormat->visual, n); swapl(&pFormat->visual, n);
(void)WriteToClient(client, sz_xvFormat, (char *)pFormat); (void)WriteToClient(client, sz_xvFormat, (char *)pFormat);
@ -1715,7 +1715,7 @@ SWriteAttributeInfo(
ClientPtr client, ClientPtr client,
xvAttributeInfo *pAtt xvAttributeInfo *pAtt
){ ){
register char n; char n;
swapl(&pAtt->flags, n); swapl(&pAtt->flags, n);
swapl(&pAtt->size, n); swapl(&pAtt->size, n);
@ -1731,7 +1731,7 @@ SWriteImageFormatInfo(
ClientPtr client, ClientPtr client,
xvImageFormatInfo *pImage xvImageFormatInfo *pImage
){ ){
register char n; char n;
swapl(&pImage->id, n); swapl(&pImage->id, n);
swapl(&pImage->red_mask, n); swapl(&pImage->red_mask, n);
@ -1759,7 +1759,7 @@ SWriteGrabPortReply(
ClientPtr client, ClientPtr client,
xvGrabPortReply *rep xvGrabPortReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1774,7 +1774,7 @@ SWriteGetPortAttributeReply(
ClientPtr client, ClientPtr client,
xvGetPortAttributeReply *rep xvGetPortAttributeReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1790,7 +1790,7 @@ SWriteQueryBestSizeReply(
ClientPtr client, ClientPtr client,
xvQueryBestSizeReply *rep xvQueryBestSizeReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1807,7 +1807,7 @@ SWriteQueryPortAttributesReply(
ClientPtr client, ClientPtr client,
xvQueryPortAttributesReply *rep xvQueryPortAttributesReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1824,7 +1824,7 @@ SWriteQueryImageAttributesReply(
ClientPtr client, ClientPtr client,
xvQueryImageAttributesReply *rep xvQueryImageAttributesReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);
@ -1844,7 +1844,7 @@ SWriteListImageFormatsReply(
ClientPtr client, ClientPtr client,
xvListImageFormatsReply *rep xvListImageFormatsReply *rep
){ ){
register char n; char n;
swaps(&rep->sequenceNumber, n); swaps(&rep->sequenceNumber, n);
swapl(&rep->length, n); swapl(&rep->length, n);

View File

@ -613,8 +613,8 @@ ProcXvMCGetDRInfo(ClientPtr client)
#ifdef HAS_XVMCSHM #ifdef HAS_XVMCSHM
patternP = (CARD32 *)shmat( stuff->shmKey, NULL, SHM_RDONLY ); patternP = (CARD32 *)shmat( stuff->shmKey, NULL, SHM_RDONLY );
if ( -1 != (long) patternP) { if ( -1 != (long) patternP) {
register volatile CARD32 *patternC = patternP; volatile CARD32 *patternC = patternP;
register int i; int i;
CARD32 magic = stuff->magic; CARD32 magic = stuff->magic;
rep.isLocal = 1; rep.isLocal = 1;