diff options
| author | 2005-12-29 19:34:18 +0000 | |
|---|---|---|
| committer | 2005-12-29 19:34:18 +0000 | |
| commit | f278bdbbad200b5424c5721ac85ee3dd8d982d60 (patch) | |
| tree | 1f3a83005df38bacee4281ee21706c64a2871082 /src/dnsqueue.cpp | |
| parent | Changed 65535 to MAX_DESCRIPTORS calculated at configure-time (diff) | |
| download | inspircd++-f278bdbbad200b5424c5721ac85ee3dd8d982d60.tar.gz inspircd++-f278bdbbad200b5424c5721ac85ee3dd8d982d60.tar.bz2 inspircd++-f278bdbbad200b5424c5721ac85ee3dd8d982d60.zip | |
Changed to MAX_DESCRIPTORS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2700 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dnsqueue.cpp')
| -rw-r--r-- | src/dnsqueue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
