summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/gethostbyht.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 07:02:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 07:02:00 +0000
commit029c374c9c2617627b90b7585b6722113cd760a4 (patch)
tree64e4e41c2c61990e65e413e912b324a6eda3ea58 /cpukit/libnetworking/libc/gethostbyht.c
parent2008-09-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-029c374c9c2617627b90b7585b6722113cd760a4.tar.bz2
Stop using old-style function definitions.
Diffstat (limited to 'cpukit/libnetworking/libc/gethostbyht.c')
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c
index c5c30f98b9..65979b7f8a 100644
--- a/cpukit/libnetworking/libc/gethostbyht.c
+++ b/cpukit/libnetworking/libc/gethostbyht.c
@@ -86,8 +86,7 @@ static char *cur;
#endif
void
-_sethosthtent(f)
- int f;
+_sethosthtent(int f)
{
if (!hostf)
hostf = fopen(_PATH_HOSTS, "r" );
@@ -97,7 +96,7 @@ _sethosthtent(f)
}
void
-_endhosthtent()
+_endhosthtent(void)
{
if (hostf && !stayopen) {
(void) fclose(hostf);
@@ -106,7 +105,7 @@ _endhosthtent()
}
struct hostent *
-gethostent()
+gethostent(void)
{
char *p;
register char *cp, **q;
@@ -171,9 +170,9 @@ gethostent()
}
struct hostent *
-_gethostbyhtname(name, af)
- const char *name;
- int af;
+_gethostbyhtname(
+ const char *name,
+ int af)
{
register struct hostent *p;
register char **cp;
@@ -194,9 +193,10 @@ found:
}
struct hostent *
-_gethostbyhtaddr(addr, len, af)
- const char *addr;
- int len, af;
+_gethostbyhtaddr(
+ const char *addr,
+ int len,
+ int af)
{
register struct hostent *p;