[X2Go-Commits] [nx-libs] 196/429: Client.h: conditionally add unused field
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:29 CEST 2021
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 d1136ea2fc57e38c94608ad889f70fc3c517055e
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Wed Dec 30 13:22:05 2020 +0100
Client.h: conditionally add unused field
---
nx-X11/programs/Xserver/hw/nxagent/Client.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Client.h b/nx-X11/programs/Xserver/hw/nxagent/Client.h
index ac2f34e8b..574466602 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Client.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Client.h
@@ -44,10 +44,15 @@ enum ClientHint
JAVA_WINDOW
};
+/* client byte counting is currently unused */
+#undef COUNT_CLIENT_BYTES
+
typedef struct _PrivClientRec
{
int clientState;
+#ifdef COUNT_CLIENT_BYTES
long clientBytes;
+#endif
enum ClientHint clientHint;
char *clientInfoString;
} PrivClientRec;
@@ -59,8 +64,6 @@ extern int nxagentClientPrivateIndex;
extern void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, void *args);
-#undef COUNT_CLIENT_BYTES
-
#ifdef COUNT_CLIENT_BYTES
#define nxagentClientAddBytes(pClient, size) \
(nxagentClientPriv(pClient) -> clientBytes += (size))
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list