diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-05-15 20:15:15 +0000 | 
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-05-15 20:15:15 +0000 | 
| commit | 036ae3dd790971f07f3cf41e19e087973d0de986 (patch) | |
| tree | 309b5291b90b8bac584d010fde9db8ed4db9a767 /lib/libc/net/getnetnamadr.c | |
| parent | d001b3ba20c2f2be531a04b9fc5041fb7c2e5c25 (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/getnetnamadr.c')
| -rw-r--r-- | lib/libc/net/getnetnamadr.c | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libc/net/getnetnamadr.c b/lib/libc/net/getnetnamadr.c index 7b8aaa68943f..eb8c9ae69538 100644 --- a/lib/libc/net/getnetnamadr.c +++ b/lib/libc/net/getnetnamadr.c @@ -120,7 +120,8 @@ getnetbyname_r(const char *name, struct netent *ne, struct netent_data *ned)  }  int -getnetbyaddr_r(u_long addr, int af, struct netent *ne, struct netent_data *ned) +getnetbyaddr_r(uint32_t addr, int af, struct netent *ne, +    struct netent_data *ned)  {  	int rval; @@ -164,13 +165,17 @@ getnetbyname(const char *name)  }  struct netent * -getnetbyaddr(u_long addr, int af) +#if __LONG_BIT == 64 +getnetbyaddr(u_long addr, int af)		/* ABI compatibility */ +#else +getnetbyaddr(uint32_t addr, int af) +#endif  {  	struct netdata *nd;  	if ((nd = __netdata_init()) == NULL)  		return NULL; -	if (getnetbyaddr_r(addr, af, &nd->net, &nd->data) != 0) +	if (getnetbyaddr_r((uint32_t)addr, af, &nd->net, &nd->data) != 0)  		return NULL;  	return &nd->net;  }  | 
