diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-25 16:25:13 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-25 16:25:13 +0930 |
commit | be5ff2b8d8a392eb8611e1fcd6da4752d68a7f9d (patch) | |
tree | 86e366af908515d55ec96295a1bd5fb043f96b39 /Xi/getvers.c | |
parent | b093bf3ec37367172be3b44a04f0f43890ba7d7d (diff) |
Xi: remove some superflous code
Diffstat (limited to 'Xi/getvers.c')
-rw-r--r-- | Xi/getvers.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Xi/getvers.c b/Xi/getvers.c index a4afe808f..1e17eea5a 100644 --- a/Xi/getvers.c +++ b/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; |