aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-03-15 18:02:21 +0000
committerGravatar brain2008-03-15 18:02:21 +0000
commit0b67fcd291950657ad4da65c08bbc0fbb677dd64 (patch)
tree6cd9adc4a3a582a657f6a709e965a108301885b4 /src/dns.cpp
parentRemove the note about requirement for anonymous bind (diff)
Allow IPv6 windows builds. NOT TESTED AT ALL!
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9099 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 649ab3187..06ed93c57 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -226,7 +226,7 @@ int DNSRequest::SendRequests(const DNSHeader *header, const int length, QueryTyp
memcpy(&addr.sin6_addr,&dnsobj->myserver6,sizeof(addr.sin6_addr));
addr.sin6_family = AF_INET6;
addr.sin6_port = htons(DNS::QUERY_PORT);
- if (sendto(dnsobj->GetFd(), payload, length + 12, 0, (sockaddr *) &addr, sizeof(addr)) != length+12)
+ if (sendto(dnsobj->GetFd(), (const char*)payload, length + 12, 0, (sockaddr *) &addr, sizeof(addr)) != length+12)
return -1;
}
else
@@ -236,7 +236,7 @@ int DNSRequest::SendRequests(const DNSHeader *header, const int length, QueryTyp
memcpy(&addr.sin_addr.s_addr,&dnsobj->myserver4,sizeof(addr.sin_addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(DNS::QUERY_PORT);
- if (sendto(dnsobj->GetFd(), payload, length + 12, 0, (sockaddr *) &addr, sizeof(addr)) != length+12)
+ if (sendto(dnsobj->GetFd(), (const char*)payload, length + 12, 0, (sockaddr *) &addr, sizeof(addr)) != length+12)
return -1;
}
#else