Xi: remove some superflous code
This commit is contained in:
parent
b093bf3ec3
commit
be5ff2b8d8
12
Xi/getvers.c
12
Xi/getvers.c
|
@ -85,7 +85,7 @@ SProcXGetExtensionVersion(ClientPtr client)
|
|||
|
||||
/***********************************************************************
|
||||
*
|
||||
* This procedure lists the input devices available to the server.
|
||||
* This procedure returns the major/minor version of the X Input extension.
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -105,14 +105,10 @@ ProcXGetExtensionVersion(ClientPtr client)
|
|||
rep.RepType = X_GetExtensionVersion;
|
||||
rep.length = 0;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.major_version = 0;
|
||||
rep.minor_version = 0;
|
||||
|
||||
rep.present = TRUE;
|
||||
if (rep.present) {
|
||||
rep.major_version = AllExtensionVersions[IReqCode - 128].major_version;
|
||||
rep.minor_version = AllExtensionVersions[IReqCode - 128].minor_version;
|
||||
}
|
||||
rep.major_version = AllExtensionVersions[IReqCode - 128].major_version;
|
||||
rep.minor_version = AllExtensionVersions[IReqCode - 128].minor_version;
|
||||
|
||||
WriteReplyToClient(client, sizeof(xGetExtensionVersionReply), &rep);
|
||||
|
||||
return Success;
|
||||
|
|
Loading…
Reference in New Issue
Block a user