X-Git-Url: http://git.pk910.de/?p=NextIRCd.git;a=blobdiff_plain;f=src%2FIOHandler%2FIODNSLookup.c;fp=src%2FIOHandler%2FIODNSLookup.c;h=36c1f044cd23b45ddfa62085d5368f234dbfbe17;hp=e6201639fa84af990c2e4fa6cd3b3a5bf376837b;hb=d2ac212695ab026aebc171d0d7c615f29c03a77c;hpb=acc7f60740ab12e2410fd3187fcb9a27995c0638 diff --git a/src/IOHandler/IODNSLookup.c b/src/IOHandler/IODNSLookup.c index e620163..36c1f04 100644 --- a/src/IOHandler/IODNSLookup.c +++ b/src/IOHandler/IODNSLookup.c @@ -6,6 +6,7 @@ * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -37,6 +38,7 @@ #include #include #endif +#include "compat/inet.h" #include @@ -238,7 +240,7 @@ int iodns_print_address(struct IODNSAddress *address, int ipv6, char *buffer, in af = AF_INET; addr = (void *)(&((struct sockaddr_in *)address->address)->sin_addr); } - buffer = inet_ntop(af, addr, buffer, length); + buffer = (char*) inet_ntop(af, addr, buffer, length); if(!buffer) return 0; else