summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-03-30 17:22:28 -0400
committerAdam Jackson <ajax@redhat.com>2009-03-31 15:00:27 -0400
commit2e145989d10ef454581f8aa60358ed3782fd6442 (patch)
tree0007c59e00c1a6a8aab756bd9802a0652b9f1706
parent252ec504817e05b185e4896a2d899e9c00b8aeef (diff)
dix: Simplify InitClient()
-rw-r--r--dix/dispatch.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 0ed95df8b..a9f936707 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -3459,37 +3459,16 @@ KillAllClients(void)
void InitClient(ClientPtr client, int i, pointer ospriv)
{
+ memset(client, 0, sizeof(*client));
client->index = i;
- client->sequence = 0;
client->clientAsMask = ((Mask)i) << CLIENTOFFSET;
- client->clientGone = FALSE;
client->closeDownMode = i ? DestroyAll : RetainPermanent;
- client->numSaved = 0;
- client->saveSet = (SaveSetElt *)NULL;
- client->noClientException = Success;
-#ifdef DEBUG
- client->requestLogIndex = 0;
-#endif
client->requestVector = InitialVector;
client->osPrivate = ospriv;
- client->swapped = FALSE;
- client->big_requests = FALSE;
- client->priority = 0;
- client->clientState = ClientStateInitial;
- client->devPrivates = NULL;
- client->xkbClientFlags = 0;
- client->mapNotifyMask = 0;
- client->newKeyboardNotifyMask = 0;
- client->vMinor = client->vMajor = 0;
QueryMinMaxKeyCodes(&client->minKC,&client->maxKC);
- client->replyBytesRemaining = 0;
- client->fontResFunc = NULL;
- client->smart_priority = 0;
client->smart_start_tick = SmartScheduleTime;
client->smart_stop_tick = SmartScheduleTime;
client->smart_check_tick = SmartScheduleTime;
-
- client->clientPtr = NULL;
}
/************************