summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 06:01:31 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 06:01:31 +0000
commit1796a63b82cb5ac263e3cb797cd84eaac8959d1c (patch)
treed17f2fde423006613d70140df1d49f75e719bd43 /src/inspircd_io.cpp
parent54963bee7003f65f5412ea52133b1a00c3b0763e (diff)
Remove some random unneeded casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3818 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}
}