diff options
author | Adam <Adam@anope.org> | 2013-09-27 15:54:21 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
commit | b319fb089c144312ab9141d6f6469d50d9d7a1ea (patch) | |
tree | b6da2ec3a23ff7f2da9ae6ce35d591faa6f57d72 /modules/m_dns.cpp | |
parent | 17196887ad1e6f9886c6cd3109bd8ede16ae7343 (diff) |
Fix compile warnings and errors found by clang
Diffstat (limited to 'modules/m_dns.cpp')
-rw-r--r-- | modules/m_dns.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/m_dns.cpp b/modules/m_dns.cpp index 01524d1ca..1637ccd98 100644 --- a/modules/m_dns.cpp +++ b/modules/m_dns.cpp @@ -464,14 +464,13 @@ class TCPSocket : public ListenSocket class Client : public ClientSocket, public Timer, public ReplySocket { Manager *manager; - TCPSocket *tcpsock; Packet *packet; unsigned char packet_buffer[524]; int length; public: Client(Manager *m, TCPSocket *l, int fd, const sockaddrs &addr) : Socket(fd, l->IsIPv6()), ClientSocket(l, addr), Timer(5), - manager(m), tcpsock(l), packet(NULL), length(0) + manager(m), packet(NULL), length(0) { Log(LOG_DEBUG_2) << "Resolver: New client from " << addr.addr(); } @@ -649,7 +648,7 @@ class MyManager : public Manager, public Timer { uint32_t serial; - typedef std::tr1::unordered_map<Question, Query, Question::hash> cache_map; + typedef TR1NS::unordered_map<Question, Query, Question::hash> cache_map; cache_map cache; TCPSocket *tcpsock; |