@@ -141,11 +141,12 @@ /* * If the host is an IP address, don't try resolving it. On the * Wii for example, the resolver will return an error if you * specify an IP address. */ - if ((s_addr = inet_addr([host UTF8String])) != INADDR_NONE) { + if ((s_addr = inet_addr((const void *)[host UTF8String])) != + INADDR_NONE) { of_resolver_result_t *tmp; struct sockaddr_in *addr; if ((ret = calloc(2, sizeof(*ret))) == NULL) @throw [OFOutOfMemoryException @@ -186,12 +187,12 @@ ret[1] = NULL; return ret; } - if ((he = gethostbyname([host UTF8String])) == NULL || - he->h_addrtype != AF_INET) + if ((he = gethostbyname((const void *)[host UTF8String])) == + NULL || he->h_addrtype != AF_INET) @throw [OFAddressTranslationFailedException exceptionWithHost: host error: h_errno]; count = 0;