From: megazig Date: Tue, 18 Aug 2015 22:15:21 +0000 (-0500) Subject: update definition of gethostbyaddr X-Git-Tag: v0.6.0~16^2~12^2 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=9e597a7af998ebd075c55ce47114fc2d2189b264;p=corbenik%2Fctrulib.git update definition of gethostbyaddr --- 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();