diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-02 05:37:10 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-02 05:37:10 +0000 |
commit | 082d4a2879af7f7fab60f93ff24dad4edf3d69b7 (patch) | |
tree | 968317f7d3466190ffa0dfffa524cd255f612c29 /cpukit/libnetworking/libc/gethostbynis.c | |
parent | 2008-08-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-082d4a2879af7f7fab60f93ff24dad4edf3d69b7.tar.bz2 |
Add missing prototypes.
Diffstat (limited to 'cpukit/libnetworking/libc/gethostbynis.c')
-rw-r--r-- | cpukit/libnetworking/libc/gethostbynis.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpukit/libnetworking/libc/gethostbynis.c b/cpukit/libnetworking/libc/gethostbynis.c index bb7680643b..1ae2e4980b 100644 --- a/cpukit/libnetworking/libc/gethostbynis.c +++ b/cpukit/libnetworking/libc/gethostbynis.c @@ -53,10 +53,10 @@ static char *host_addrs[2]; #endif /* YP */ static struct hostent * -_gethostbynis(name, map, af) - const char *name; - char *map; - int af; +_gethostbynis( + const char *name, + char *map, + int af) { #ifdef YP register char *cp, **q; @@ -124,18 +124,18 @@ _gethostbynis(name, map, af) } struct hostent * -_gethostbynisname(name, af) - const char *name; - int af; +_gethostbynisname( + const char *name, + int af) { return _gethostbynis(name, "hosts.byname", af); } struct hostent * -_gethostbynisaddr(addr, len, af) - const char *addr; - int len; - int af; +_gethostbynisaddr( + const char *addr, + int len, + int af) { return _gethostbynis(inet_ntoa(*(struct in_addr *)addr),"hosts.byaddr", af); } |