diff options
Diffstat (limited to 'cpukit/libnetworking/libc')
-rw-r--r-- | cpukit/libnetworking/libc/gethostnamadr.c | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/libc/getnetnamadr.c | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/cpukit/libnetworking/libc/gethostnamadr.c b/cpukit/libnetworking/libc/gethostnamadr.c index ab48634ae8..19c05b31ba 100644 --- a/cpukit/libnetworking/libc/gethostnamadr.c +++ b/cpukit/libnetworking/libc/gethostnamadr.c @@ -159,7 +159,7 @@ gethostbyname2(const char *name, int type) } struct hostent * -gethostbyaddr(const char *addr, int len, int type) +gethostbyaddr(const void *addr, socklen_t len, int type) { struct hostent *hp = 0; int nserv = 0; diff --git a/cpukit/libnetworking/libc/getnetnamadr.c b/cpukit/libnetworking/libc/getnetnamadr.c index 3676697f91..e99bce565e 100644 --- a/cpukit/libnetworking/libc/getnetnamadr.c +++ b/cpukit/libnetworking/libc/getnetnamadr.c @@ -145,9 +145,7 @@ getnetbyname(const char *name) } struct netent * -getnetbyaddr(addr, af) - u_long addr; - int af; +getnetbyaddr(uint32_t addr, int af) { struct netent *hp = 0; int nserv = 0; @@ -175,15 +173,14 @@ getnetbyaddr(addr, af) } void -setnetent(stayopen) - int stayopen; +setnetent(int stayopen) { _setnethtent(stayopen); _setnetdnsent(stayopen); } void -endnetent() +endnetent(void) { _endnethtent(); _endnetdnsent(); |