summaryrefslogtreecommitdiffstats
path: root/cpukit/librpc/src/rpc
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-01 16:04:25 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-01 16:04:25 +0000
commit9c873b1da9d153f054686dd1dece7b567bd11ca8 (patch)
tree8b53b24211dd5a115704a72762751ff471b77e74 /cpukit/librpc/src/rpc
parent2008-08-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-9c873b1da9d153f054686dd1dece7b567bd11ca8.tar.bz2
Remove stray local decls. Misc. ansifications.
Diffstat (limited to 'cpukit/librpc/src/rpc')
-rw-r--r--cpukit/librpc/src/rpc/getrpcent.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/cpukit/librpc/src/rpc/getrpcent.c b/cpukit/librpc/src/rpc/getrpcent.c
index e2d2e164d5..5eb9c98ad5 100644
--- a/cpukit/librpc/src/rpc/getrpcent.c
+++ b/cpukit/librpc/src/rpc/getrpcent.c
@@ -69,14 +69,12 @@ static int __yp_nomap = 0;
extern int _yp_check(char **);
#endif /* YP */
-static struct rpcent *interpret();
-struct hostent *gethostent();
-char *inet_ntoa();
+static struct rpcent *interpret(char *val, int len);
static char RPCDB[] = "/etc/rpc";
static struct rpcdata *
-_rpcdata()
+_rpcdata(void)
{
register struct rpcdata *d = rpcdata;
@@ -253,9 +251,9 @@ no_yp:
}
static struct rpcent *
-interpret(val, len)
- char *val;
- int len;
+interpret(
+ char *val,
+ int len)
{
register struct rpcdata *d = _rpcdata();
char *p;