diff options
author | Adam <Adam@anope.org> | 2011-10-24 16:37:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-10-24 16:37:29 -0400 |
commit | 7c62de1f27ee21e41b7655e9d82a227f6e2cf2b5 (patch) | |
tree | 9393c1c5b18c3d34da786556f960fe5cc010ee98 /src/sockets.cpp | |
parent | ccf29c013465ba4b9709c04ba4452f4454b1ebdc (diff) | |
parent | 377a7a968b6a906f262a45abea9a563ffc471938 (diff) |
Merge branch '1.9' of anope.git.sf.net:/gitroot/anope/anope into 1.9
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r-- | src/sockets.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index 91d3eaac0..fa79d32f2 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -2,8 +2,8 @@ std::map<int, Socket *> SocketEngine::Sockets; -int32 TotalRead = 0; -int32 TotalWritten = 0; +int32_t TotalRead = 0; +int32_t TotalWritten = 0; SocketIO normalSocketIO; @@ -232,7 +232,7 @@ bool cidr::match(sockaddrs &other) default: throw SocketException("Invalid address type"); } - + if (memcmp(ip, their_ip, byte)) return false; @@ -241,7 +241,7 @@ bool cidr::match(sockaddrs &other) byte = this->cidr_len % 8; if ((*ip & byte) != (*their_ip & byte)) return false; - + return true; } |