]> Chaos Git - corbenik/ctrulib.git/commitdiff
update definition of gethostbyaddr
authormegazig <megazig@gmail.com>
Tue, 18 Aug 2015 22:15:21 +0000 (17:15 -0500)
committermegazig <megazig@gmail.com>
Tue, 18 Aug 2015 22:15:21 +0000 (17:15 -0500)
libctru/include/netdb.h
libctru/source/services/soc/soc_gethostbyaddr.c

index dce8ffd644346756967d028b44e168f0567227ea..4e42861b05386960bfccf86c22c2a384dcec1944 100644 (file)
@@ -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);
 
index d19e01b277741542ee642fceb6adc37ce2dbb814..7e1a117828061dfe054df927d371822a804f0e80 100644 (file)
@@ -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();