diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-08 20:59:16 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-08 20:59:16 +0000 |
commit | 36b68893df73fa2b2a9ab579172350cfd90c2e80 (patch) | |
tree | d7db6bc289763adc684ce916b6529b9155b57793 /include/socket.h | |
parent | 617b640fa8e55f853181c0cc0620d6cf2eeb6b4f (diff) |
Remove crappy, unsafe (and now unneeded!) casts.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10476 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socket.h')
-rw-r--r-- | include/socket.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/socket.h b/include/socket.h index 961fbd98e..e1050201a 100644 --- a/include/socket.h +++ b/include/socket.h @@ -135,7 +135,7 @@ namespace irc * or a negative value upon failure (negative values are invalid file * descriptors) */ - CoreExport int OpenTCPSocket(char* addr, int socktype = SOCK_STREAM); + CoreExport int OpenTCPSocket(const char* addr, int socktype = SOCK_STREAM); } } @@ -171,7 +171,7 @@ class CoreExport ListenSocketBase : public EventHandler public: /** Create a new listening socket */ - ListenSocketBase(InspIRCd* Instance, int port, char* addr); + ListenSocketBase(InspIRCd* Instance, int port, const std::string &addr); /** Handle an I/O event */ void HandleEvent(EventType et, int errornum = 0); @@ -219,7 +219,7 @@ class CoreExport ClientListenSocket : public ListenSocketBase { virtual void OnAcceptReady(const std::string &ipconnectedto, int fd, const std::string &incomingip); public: - ClientListenSocket(InspIRCd* Instance, int port, char* addr) : ListenSocketBase(Instance, port, addr) { } + ClientListenSocket(InspIRCd* Instance, int port, const std::string &addr) : ListenSocketBase(Instance, port, addr) { } }; #endif |