summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-02 21:26:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-02 21:26:49 +0000
commitdaf12f4d06f7815d01d3a8c3d6dfd0e0007a7ba6 (patch)
tree269a2c6f0d20bbe4fa9559958eeb952927e66e4d /include
parent79da8ad27e1fa50319e39c82d814b5f46ee219ca (diff)
Change to a const
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4658 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/dns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dns.h b/include/dns.h
index f0ad8dd7a..9d5906d3b 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -159,10 +159,12 @@ class DNS : public Extensible
{
private:
+ static const int MAX_REQUEST_ID = 65535;
+
requestlist requests;
insp_inaddr myserver;
static int MasterSocket;
- Resolver* Classes[65536];
+ Resolver* Classes[MAX_REQUEST_ID];
int MakePayload(const char* name, const QueryType rr, const unsigned short rr_class, unsigned char* payload);
public: