summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/gethostbynis.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-02 05:37:10 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-02 05:37:10 +0000
commit082d4a2879af7f7fab60f93ff24dad4edf3d69b7 (patch)
tree968317f7d3466190ffa0dfffa524cd255f612c29 /cpukit/libnetworking/libc/gethostbynis.c
parent2008-08-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-082d4a2879af7f7fab60f93ff24dad4edf3d69b7.tar.bz2
Add missing prototypes.
Diffstat (limited to 'cpukit/libnetworking/libc/gethostbynis.c')
-rw-r--r--cpukit/libnetworking/libc/gethostbynis.c22
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);
}