diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-23 20:45:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-23 20:45:09 +0000 |
commit | 352eb2b29f2e3f759ef74344b4807b1b6dff8e59 (patch) | |
tree | 840a98a68cdc20bfe032320f39342bf0c6918c18 /src/socket.cpp | |
parent | a78e985b881c97d476b0799ea5db5fe1f417c086 (diff) |
All the core is now pedantic safe!
NOTE: I changed ModeHandler removing a redundant param. Devs, if you find stuff that doesnt compile, change AddMode(handler, 'l') to AddMode(handler); and it will :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8319 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 324f7633a..09885eca1 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -65,7 +65,7 @@ ListenSocket::~ListenSocket() } } -void ListenSocket::HandleEvent(EventType et, int errornum) +void ListenSocket::HandleEvent(EventType, int) { sockaddr* sock_us = new sockaddr[2]; // our port number sockaddr* client = new sockaddr[2]; @@ -426,7 +426,8 @@ int irc::sockets::OpenTCPSocket(char* addr, int socktype) { int sockfd; int on = 1; - struct linger linger = { 0 }; + addr = addr; + struct linger linger = { 0, 0 }; #ifdef IPV6 if (strchr(addr,':') || (!*addr)) sockfd = socket (PF_INET6, socktype, 0); @@ -450,7 +451,7 @@ int irc::sockets::OpenTCPSocket(char* addr, int socktype) } } -int InspIRCd::BindPorts(bool bail, int &ports_found, FailedPortList &failed_ports) +int InspIRCd::BindPorts(bool, int &ports_found, FailedPortList &failed_ports) { char configToken[MAXBUF], Addr[MAXBUF], Type[MAXBUF]; int bound = 0; |