From: John Hodge Date: Sat, 15 Mar 2014 08:12:22 +0000 (+0800) Subject: Usermode/libpsocket - (minor) Commenting for DNS X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=81d1f60ed14ad9f272ce6e31dc59e96ac99037fd;p=tpg%2Facess2.git Usermode/libpsocket - (minor) Commenting for DNS --- diff --git a/Usermode/Libraries/libpsocket.so_src/getaddrinfo.c b/Usermode/Libraries/libpsocket.so_src/getaddrinfo.c index fd935038..57108e94 100644 --- a/Usermode/Libraries/libpsocket.so_src/getaddrinfo.c +++ b/Usermode/Libraries/libpsocket.so_src/getaddrinfo.c @@ -86,6 +86,8 @@ int getaddrinfo(const char *node, const char *service, const struct addrinfo *hi // TODO: DNS Lookups // ? /Acess/Conf/Nameservers // ? /Acess/Conf/Hosts + //count = Net_LookupDNS(node, service, NULL); + // } // 3. No Match, chuck sad @@ -142,8 +144,7 @@ int getaddrinfo(const char *node, const char *service, const struct addrinfo *hi } } - struct addrinfo *ai; - for( ai = ret; ai; ai = ai->ai_next) + for( struct addrinfo *ai = ret; ai; ai = ai->ai_next) { struct sockaddr_in *in = (void*)ai->ai_addr; struct sockaddr_in6 *in6 = (void*)ai->ai_addr;