Usermode/libunicode - Add C++ wrappers
[tpg/acess2.git] / Usermode / Libraries / libpsocket.so_src / getaddrinfo.c
index bd50f91..5c21c06 100644 (file)
@@ -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;
@@ -235,3 +236,8 @@ const char *gai_strerror(int errnum)
        }
 }
 
+struct hostent *gethostbyname(const char *name)
+{
+       return NULL;
+}
+

UCC git Repository :: git.ucc.asn.au