From 7bbef1a52b8437d3acc75a89570f6753fe2f4428 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 8 Sep 2008 21:13:30 +0000 Subject: Growl. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10477 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 9b59ea6bb..777ba5567 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -371,14 +371,14 @@ class HttpListener : public ListenSocketBase FileReader* index; public: - HttpListener(InspIRCd* Instance, FileReader *idx, int port, char* addr) : ListenSocketBase(Instance, port, addr) + HttpListener(InspIRCd* Instance, FileReader *idx, int port, const std::string &addr) : ListenSocketBase(Instance, port, addr) { this->index = idx; } virtual void OnAcceptReady(const std::string &ipconnectedto, int nfd, const std::string &incomingip) { - new HttpServerSocket(ServerInstance, nfd, incomingip.c_str(), index); + new HttpServerSocket(ServerInstance, nfd, (char *)incomingip.c_str(), index); // ugly cast courtesy of bufferedsocket } }; -- cgit v1.2.3