From 48262da087538c38b91bf3a1a51ffaa5e61e502f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 19:25:31 +0000 Subject: Change some resolver stuff. OM, THIS STILL WONT COMPILE! Error on the same line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4821 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/dns.cpp') diff --git a/src/dns.cpp b/src/dns.cpp index 5e6499dc0..f7a2d62e2 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -43,9 +43,6 @@ using namespace std; #include "socketengine.h" #include "configreader.h" -/* We need these */ -extern InspIRCd* ServerInstance; - /* Master file descriptor */ int DNS::MasterSocket; @@ -242,7 +239,7 @@ int DNS::GetMasterSocket() } /* Initialise the DNS UDP socket so that we can send requests */ -DNS::DNS() +DNS::DNS(InspIRCd* Instance) : ServerInstance(Instance) { insp_inaddr addr; @@ -834,7 +831,7 @@ DNS::~DNS() } /* High level abstraction of dns used by application at large */ -Resolver::Resolver(const std::string &source, QueryType qt) : input(source), querytype(qt) +Resolver::Resolver(InspIRCd* Instance, const std::string &source, QueryType qt) : ServerInstance(Instance), input(source), querytype(qt) { insp_inaddr binip; -- cgit v1.3.1-10-gc9f91