Commit dd5d8bc8 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Client.h: conditionally add unused field

parent c1843ef8
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment