This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit db836fd7842ec7b98cede0503073f55a70b0ff7e
Author: Ulrich Sibiller <ul...@gmx.de>
Date:   Sun Nov 5 12:39:05 2017 +0100

    Lift record to xorg-xserver-7.1/1.1.0 state
---
 nx-X11/programs/Xserver/record/record.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/nx-X11/programs/Xserver/record/record.c 
b/nx-X11/programs/Xserver/record/record.c
index 48b1964..6334c97 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;
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on 
/srv/git/code.x2go.org/nx-libs.git
_______________________________________________
x2go-commits mailing list
x2go-commits@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-commits

Reply via email to