summaryrefslogtreecommitdiff
path: root/dix/globals.c
diff options
context:
space:
mode:
authorTomas Carnecky <tom@dbservice.com>2008-08-04 23:26:00 +0300
committerDaniel Stone <daniel@fooishbar.org>2008-08-05 01:17:32 +0300
commit277a74bcbb7d0a93c4f2e1de11daabd8c5f93ee8 (patch)
treeff926c7262d41be27ad2b76274a1be028ad588ec /dix/globals.c
parent5532d63488ec45953ff7f925cfb4f87adb3b04a0 (diff)
Redefine clients as a fixed array
This removes yet another xalloc() each server generation. Also, I couldn't find the corresponding xfree() so I guess that used to be a memory leak there.
Diffstat (limited to 'dix/globals.c')
-rw-r--r--dix/globals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/globals.c b/dix/globals.c
index d3dd33119..a9134c39a 100644
--- a/dix/globals.c
+++ b/dix/globals.c
@@ -78,7 +78,7 @@ PtrCtrl defaultPointerControl = {
DEFAULT_PTR_THRESHOLD,
0};
-_X_EXPORT ClientPtr *clients;
+_X_EXPORT ClientPtr clients[MAXCLIENTS];
_X_EXPORT ClientPtr serverClient;
_X_EXPORT int currentMaxClients; /* current size of clients array */
_X_EXPORT long maxBigRequestSize = MAX_BIG_REQUEST_SIZE;