diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-11-05 12:39:05 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-02-27 01:35:08 +0100 |
commit | db836fd7842ec7b98cede0503073f55a70b0ff7e (patch) | |
tree | 85d35a820289143ed31f3ba76460d7dba5636c2b /nx-X11 | |
parent | 92d806399c69fda03275dcc23758498f9321434c (diff) | |
download | nx-libs-db836fd7842ec7b98cede0503073f55a70b0ff7e.tar.gz nx-libs-db836fd7842ec7b98cede0503073f55a70b0ff7e.tar.bz2 nx-libs-db836fd7842ec7b98cede0503073f55a70b0ff7e.zip |
Lift record to xorg-xserver-7.1/1.1.0 state
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/record/record.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/record/record.c b/nx-X11/programs/Xserver/record/record.c index 48b1964e6..6334c973b 100644 --- a/nx-X11/programs/Xserver/record/record.c +++ b/nx-X11/programs/Xserver/record/record.c @@ -41,6 +41,7 @@ and Jim Haggerty of Metheus. #define _XRECORD_SERVER_ #include <nx-X11/extensions/recordstr.h> #include "set.h" +#include "swaprep.h" #include <stdio.h> #include <assert.h> @@ -797,13 +798,13 @@ RecordADeliveredEventOrError(pcbl, nulldata, calldata) xEvent *pev = pei->events; for (ev = 0; ev < pei->count; ev++, pev++) { - int recordit; - if (pev->u.u.type == X_Error) + int recordit = 0; + if (pRCAP->pErrorSet) { recordit = RecordIsMemberOfSet(pRCAP->pErrorSet, ((xError *)(pev))->errorCode); } - else + else if (pRCAP->pDeliveredEventSet) { recordit = RecordIsMemberOfSet(pRCAP->pDeliveredEventSet, pev->u.u.type & 0177); @@ -2861,9 +2862,6 @@ SProcRecordDispatch(client) } } /* SProcRecordDispatch */ -/* XXX goes in header file */ -extern void SwapConnSetupInfo(), SwapConnSetupPrefix(); - /* RecordConnectionSetupInfo * * Arguments: @@ -2889,8 +2887,8 @@ RecordConnectionSetupInfo(pContext, pci) char * pConnSetup = (char *)malloc(prefixsize + restsize); if (!pConnSetup) return; - SwapConnSetupPrefix(pci->prefix, pConnSetup); - SwapConnSetupInfo(pci->setup, pConnSetup + prefixsize); + SwapConnSetupPrefix(pci->prefix, (xConnSetupPrefix*)pConnSetup); + SwapConnSetupInfo((char *)pci->setup, (char *)(pConnSetup + prefixsize)); RecordAProtocolElement(pContext, pci->client, XRecordClientStarted, (void *)pConnSetup, prefixsize + restsize, 0); free(pConnSetup); @@ -3015,7 +3013,7 @@ RecordCloseDown(extEntry) * Enables the RECORD extension if possible. */ void -RecordExtensionInit() +RecordExtensionInit(void) { ExtensionEntry *extentry; |