[PATCH:xscope 11/14] Remove StaticMaxFD now that all uses now allocate dynamically
Alan Coopersmith
alan.coopersmith at ORACLE.COM
Sat Sep 24 08:48:29 PDT 2011
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
fd.c | 5 -----
fd.h | 3 ---
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);
--
1.7.3.2
More information about the xorg-devel
mailing list