update definition of gethostbyaddr

This commit is contained in:
megazig 2015-08-18 17:15:21 -05:00
parent 8e7606692d
commit 9e597a7af9
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ extern "C" {
extern int h_errno; extern int h_errno;
struct hostent* gethostbyname(const char *name); 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); void herror(const char *s);
const char* hstrerror(int err); const char* hstrerror(int err);

View File

@ -6,7 +6,7 @@ static struct hostent SOC_hostent;
static char *SOC_hostent_results[MAX_HOSTENT_RESULTS+1]; static char *SOC_hostent_results[MAX_HOSTENT_RESULTS+1];
static char *SOC_hostent_alias = NULL; 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; int ret = 0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();