mirror of
https://github.com/anope/anope.git
synced 2026-07-02 02:06:38 +02:00
Fixed bug #1349 (m_sqlite compiles without error under FreeBSD), as well as use C99's stdint.h (or cstdint if available) to get (u)intX_t types instead of our stupid typedefs. pstdint.h included in case there is no cstdint or stdint.h available.
This commit is contained in:
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user