Commit 7921cf79 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Handlers.c: slight cosmetics

no functional change
parent c73ddd31
...@@ -573,7 +573,6 @@ void nxagentWakeupHandler(void * data, int count, void * mask) ...@@ -573,7 +573,6 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
if (!SmartScheduleSignalEnable) if (!SmartScheduleSignalEnable)
{ {
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "nxagentWakeupHandler: Resetting the dispatch state after wakeup.\n"); fprintf(stderr, "nxagentWakeupHandler: Resetting the dispatch state after wakeup.\n");
#endif #endif
...@@ -582,7 +581,6 @@ void nxagentWakeupHandler(void * data, int count, void * mask) ...@@ -582,7 +581,6 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
nxagentDispatch.in = nxagentBytesIn; nxagentDispatch.in = nxagentBytesIn;
nxagentDispatch.out = nxagentBytesOut; nxagentDispatch.out = nxagentBytesOut;
} }
/* /*
...@@ -638,12 +636,10 @@ void nxagentWakeupHandler(void * data, int count, void * mask) ...@@ -638,12 +636,10 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
nxagentReady = count; nxagentReady = count;
#ifdef TEST #ifdef TEST
if (nxagentReady == 0) if (nxagentReady == 0)
{ {
fprintf(stderr, "nxagentWakeupHandler: No X clients found to be processed.\n"); fprintf(stderr, "nxagentWakeupHandler: No X clients found to be processed.\n");
} }
#endif #endif
/* /*
...@@ -714,17 +710,17 @@ void nxagentShadowBlockHandler(void * data, struct timeval **timeout, void * mas ...@@ -714,17 +710,17 @@ void nxagentShadowBlockHandler(void * data, struct timeval **timeout, void * mas
if (nxagentSessionState == SESSION_DOWN && nxagentOption(SleepTime) > 0) if (nxagentSessionState == SESSION_DOWN && nxagentOption(SleepTime) > 0)
{ {
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentShadowBlockHandler: sleeping for %d milliseconds for slowdown.\n", fprintf(stderr, "nxagentShadowBlockHandler: sleeping for %d milliseconds for slowdown.\n",
nxagentOption(SleepTime)); nxagentOption(SleepTime));
#endif #endif
usleep(nxagentOption(SleepTime) * 1000); usleep(nxagentOption(SleepTime) * 1000);
} }
#ifdef TEST #ifdef TEST
else if (0 == nxagentOption(SleepTime)) { else if (0 == nxagentOption(SleepTime)) {
fprintf(stderr, "nxagentShadowBlockHandler: not sleeping for slowdown.\n"); fprintf(stderr, "nxagentShadowBlockHandler: not sleeping for slowdown.\n");
} }
#endif #endif
if (nxagentReadEvents(nxagentDisplay) > 0 || if (nxagentReadEvents(nxagentDisplay) > 0 ||
nxagentReadEvents(nxagentShadowDisplay) > 0) nxagentReadEvents(nxagentShadowDisplay) > 0)
...@@ -1003,7 +999,6 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out) ...@@ -1003,7 +999,6 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
if (!SmartScheduleSignalEnable) if (!SmartScheduleSignalEnable)
{ {
/* /*
* Pay attention to the next client if this client produced * Pay attention to the next client if this client produced
* enough output. * enough output.
...@@ -1032,9 +1027,7 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out) ...@@ -1032,9 +1027,7 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
nxagentBytesOut - nxagentDispatch.out, nxagentDispatch.client); nxagentBytesOut - nxagentDispatch.out, nxagentDispatch.client);
} }
#endif #endif
} }
return; return;
} }
else if (in > 0) else if (in > 0)
...@@ -1077,7 +1070,6 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out) ...@@ -1077,7 +1070,6 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
if (!SmartScheduleSignalEnable) if (!SmartScheduleSignalEnable)
{ {
if (client -> index != nxagentDispatch.client) if (client -> index != nxagentDispatch.client)
{ {
#ifdef DEBUG #ifdef DEBUG
...@@ -1122,9 +1114,7 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out) ...@@ -1122,9 +1114,7 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
} }
#endif #endif
} }
} }
} }
/* /*
...@@ -1168,12 +1158,10 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out) ...@@ -1168,12 +1158,10 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
*/ */
#ifdef TEST #ifdef TEST
if (nxagentTokens.pending == TOKENS_PENDING_LIMIT) if (nxagentTokens.pending == TOKENS_PENDING_LIMIT)
{ {
fprintf(stderr, "nxagentDispatchHandler: WARNING! Waiting for the synchronization reply.\n"); fprintf(stderr, "nxagentDispatchHandler: WARNING! Waiting for the synchronization reply.\n");
} }
#endif #endif
while (nxagentTokens.pending == TOKENS_PENDING_LIMIT) while (nxagentTokens.pending == TOKENS_PENDING_LIMIT)
......
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