From daf12f4d06f7815d01d3a8c3d6dfd0e0007a7ba6 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 2 Aug 2006 21:26:49 +0000 Subject: Change to a const git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4658 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/dns.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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: -- cgit v1.2.3