(!1596) Xext: geext: drop unused variable extEntry
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
6662a7099c
commit
99e6fc92aa
16
Xext/geext.c
16
Xext/geext.c
|
@ -186,24 +186,16 @@ SGEGenericEvent(xEvent *from, xEvent *to)
|
||||||
void
|
void
|
||||||
GEExtensionInit(void)
|
GEExtensionInit(void)
|
||||||
{
|
{
|
||||||
ExtensionEntry *extEntry;
|
|
||||||
|
|
||||||
if (!dixRegisterPrivateKey
|
if (!dixRegisterPrivateKey
|
||||||
(&GEClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(GEClientInfoRec)))
|
(&GEClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(GEClientInfoRec)))
|
||||||
FatalError("GEExtensionInit: GE private request failed.\n");
|
FatalError("GEExtensionInit: GE private request failed.\n");
|
||||||
|
|
||||||
if ((extEntry = AddExtension(GE_NAME,
|
if (!AddExtension(GE_NAME, 0, GENumberErrors, ProcGEDispatch, SProcGEDispatch,
|
||||||
0, GENumberErrors,
|
GEResetProc, StandardMinorOpcode))
|
||||||
ProcGEDispatch, SProcGEDispatch,
|
|
||||||
GEResetProc, StandardMinorOpcode)) != 0) {
|
|
||||||
memset(GEExtensions, 0, sizeof(GEExtensions));
|
|
||||||
|
|
||||||
EventSwapVector[GenericEvent] = (EventSwapPtr) SGEGenericEvent;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
FatalError("GEInit: AddExtensions failed.\n");
|
FatalError("GEInit: AddExtensions failed.\n");
|
||||||
}
|
|
||||||
|
|
||||||
|
memset(GEExtensions, 0, sizeof(GEExtensions));
|
||||||
|
EventSwapVector[GenericEvent] = (EventSwapPtr) SGEGenericEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************/
|
/************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue