From 1796a63b82cb5ac263e3cb797cd84eaac8959d1c Mon Sep 17 00:00:00 2001 From: om Date: Tue, 4 Apr 2006 06:01:31 +0000 Subject: Remove some random unneeded casts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3818 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inspircd_io.cpp') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 3d8af7e4a..0ae36d292 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1393,7 +1393,7 @@ int ServerConfig::ConfVarEnum(ConfigDataHash &target, const std::string &tag, in */ bool BindSocket(int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr) { - memset((char *)&server,0,sizeof(server)); + memset(&server,0,sizeof(server)); struct in_addr addy; bool resolved = false; char resolved_addr[128]; @@ -1465,11 +1465,11 @@ int OpenTCPSocket() } else { - setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const char*)&on, sizeof(on)); + setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); /* This is BSD compatible, setting l_onoff to 0 is *NOT* http://web.irc.org/mla/ircd-dev/msg02259.html */ linger.l_onoff = 1; linger.l_linger = 1; - setsockopt(sockfd, SOL_SOCKET, SO_LINGER, (const char*)&linger,sizeof(linger)); + setsockopt(sockfd, SOL_SOCKET, SO_LINGER, &linger,sizeof(linger)); return (sockfd); } } -- cgit v1.2.3