From f278bdbbad200b5424c5721ac85ee3dd8d982d60 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 29 Dec 2005 19:34:18 +0000 Subject: Changed to MAX_DESCRIPTORS git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2700 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dnsqueue.cpp') diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 8ea0f3ec3..1495316c5 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -55,7 +55,7 @@ extern InspIRCd* ServerInstance; class Lookup; -Lookup* dnslist[65535]; +Lookup* dnslist[MAX_DESCRIPTORS]; //enum LookupState { reverse, forward }; @@ -225,7 +225,7 @@ bool lookup_dns(std::string nick) void dns_poll(int fdcheck) { /* Check the given file descriptor is in valid range */ - if ((fdcheck < 0) || (fdcheck > 65535)) + if ((fdcheck < 0) || (fdcheck > MAX_DESCRIPTORS)) return; /* Try and find the file descriptor in our list of -- cgit v1.3.1-10-gc9f91