summaryrefslogtreecommitdiff
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
commitfb391ffad2ccd5b76d6a87e4d2e83ff5282edee5 (patch)
tree506ee14bb61f2d21df84fc391a792f8a0ed496b7
parente259c7ec60a84280dbf7e2cf041a6fec79f53e1f (diff)
downloadxscope-fb391ffad2ccd5b76d6a87e4d2e83ff5282edee5.tar.gz
Remove StaticMaxFD now that all uses now allocate dynamically
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--fd.c5
-rw-r--r--fd.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/fd.c b/fd.c
index 9bff364..be42d4b 100644
--- a/fd.c
+++ b/fd.c
@@ -98,11 +98,6 @@ InitializeFD(void)
if (MaxFD > FD_SETSIZE) {
MaxFD = FD_SETSIZE;
}
- if (MaxFD > StaticMaxFD)
- {
- fprintf(stderr, "Recompile with larger StaticMaxFD value %d\n", MaxFD);
- MaxFD = StaticMaxFD;
- }
/* allocate space for a File Descriptor (FD) Table */
FDD = calloc (MaxFD, sizeof (struct FDDescriptor));
diff --git a/fd.h b/fd.h
index 76a3e6e..605375a 100644
--- a/fd.h
+++ b/fd.h
@@ -87,9 +87,6 @@ extern fd_set WriteDescriptors /* bit map of write blocked FD's -- for select *
extern fd_set BlockedReadDescriptors /* bit map of FD's blocked from reading */;
extern short HighestFD /* highest FD in use -- for select */ ;
-/* need to change the MaxFD to allow larger number of fd's */
-#define StaticMaxFD FD_SETSIZE
-
extern void InitializeFD(void);
extern void UsingFD(FD fd, void (*Handler)(int), void (*FlushHandler)(int),
XtransConnInfo trans_conn);