diff --git a/libctru/include/netdb.h b/libctru/include/netdb.h index dce8ffd..4e42861 100644 --- a/libctru/include/netdb.h +++ b/libctru/include/netdb.h @@ -23,7 +23,7 @@ extern "C" { 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); diff --git a/libctru/source/services/soc/soc_gethostbyaddr.c b/libctru/source/services/soc/soc_gethostbyaddr.c index d19e01b..7e1a117 100644 --- a/libctru/source/services/soc/soc_gethostbyaddr.c +++ b/libctru/source/services/soc/soc_gethostbyaddr.c @@ -6,7 +6,7 @@ static struct hostent SOC_hostent; 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();