update definition of gethostbyaddr
This commit is contained in:
parent
8e7606692d
commit
9e597a7af9
@ -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);
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user