diff options
-rw-r--r-- | server.c | 2 | ||||
-rw-r--r-- | table11.c | 3 | ||||
-rw-r--r-- | x11.h | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -53,7 +53,7 @@ struct TypeDef TD[MaxTypes]; unsigned char RBf[2]; unsigned char SBf[4]; -struct ConnState CS[StaticMaxFD]; +struct ConnState *CS; /* ************************************************************ */ /* */ @@ -107,6 +107,9 @@ static int PrintVISUALTYPE(const unsigned char *buf); void InitializeX11 (void) { + CS = calloc(MaxFD, sizeof(struct ConnState)); + if (CS == NULL) + panic("unable to allocate ConnState table"); InitReplyQ(); InitBuiltInTypes(); @@ -508,7 +508,7 @@ struct ConnState long SequenceNumber; }; -extern struct ConnState CS[StaticMaxFD]; +extern struct ConnState *CS; typedef struct _Value { struct _Value *next; |