extern int h_errno;
struct hostent* gethostbyname(const char *name);
- struct hostent* gethostbyaddr(const char *addr, socklen_t len, int type);
+ struct hostent* gethostbyaddr(const void *addr, socklen_t len, int type);
void herror(const char *s);
const char* hstrerror(int err);
static char *SOC_hostent_results[MAX_HOSTENT_RESULTS+1];
static char *SOC_hostent_alias = NULL;
-struct hostent* gethostbyaddr(const char *addr, socklen_t len, int type)
+struct hostent* gethostbyaddr(const void *addr, socklen_t len, int type)
{
int ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();