summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
commit39bbb6265aa79c1ff3d787f5e23c8cb5f13bd6c1 (patch)
treee85b1d8ddbda62f72e7deebb33f7f48dc5aaad40 /server.c
parenta70f4e6f7243e9e6803b3308a15c9cf3a77ee383 (diff)
downloadxscope-39bbb6265aa79c1ff3d787f5e23c8cb5f13bd6c1.tar.gz
Make CS dynamically allocated
We still allocate one ConnState struct for every possible FD up front instead of resizing as needed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 77e77ca..a65eaee 100644
--- a/server.c
+++ b/server.c
@@ -53,7 +53,7 @@
struct TypeDef TD[MaxTypes];
unsigned char RBf[2];
unsigned char SBf[4];
-struct ConnState CS[StaticMaxFD];
+struct ConnState *CS;
/* ************************************************************ */
/* */