1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 14:16:39 +02:00

Fixed windows build

This commit is contained in:
Adam
2011-08-10 01:32:07 -04:00
parent 13bcc4ef14
commit ded98ed3de
11 changed files with 37 additions and 17 deletions
+2 -2
View File
@@ -255,7 +255,7 @@ bool DNSManager::ProcessRead()
unsigned char packet_buffer[524];
sockaddrs from_server;
socklen_t x = sizeof(from_server);
int length = recvfrom(this->GetFD(), &packet_buffer, sizeof(packet_buffer), 0, &from_server.sa, &x);
int length = recvfrom(this->GetFD(), reinterpret_cast<char *>(&packet_buffer), sizeof(packet_buffer), 0, &from_server.sa, &x);
if (length < 12)
return true;
@@ -497,7 +497,7 @@ bool DNSManager::ProcessWrite()
unsigned char buffer[524];
r->FillBuffer(buffer);
sendto(this->GetFD(), buffer, r->payload_count + 12, 0, &this->addrs.sa, this->addrs.size());
sendto(this->GetFD(), reinterpret_cast<char *>(buffer), r->payload_count + 12, 0, &this->addrs.sa, this->addrs.size());
delete r;
DNSEngine->packets.erase(DNSEngine->packets.begin());