diff options
author | Tomas Carnecky <tom@dbservice.com> | 2008-08-04 23:26:00 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2008-08-05 01:17:32 +0300 |
commit | 277a74bcbb7d0a93c4f2e1de11daabd8c5f93ee8 (patch) | |
tree | ff926c7262d41be27ad2b76274a1be028ad588ec /include/dix.h | |
parent | 5532d63488ec45953ff7f925cfb4f87adb3b04a0 (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 'include/dix.h')
-rw-r--r-- | include/dix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dix.h b/include/dix.h index 4b8a96e57..64e3d7874 100644 --- a/include/dix.h +++ b/include/dix.h @@ -119,7 +119,7 @@ typedef struct _Client *ClientPtr; /* also in misc.h */ typedef struct _WorkQueue *WorkQueuePtr; -extern ClientPtr *clients; +extern ClientPtr clients[MAXCLIENTS]; extern ClientPtr serverClient; extern int currentMaxClients; extern char dispatchExceptionAtReset; |