From 45f1824dc839fb6401cd6e061924a604438b2bed Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 7 Jul 2002 07:25:57 +0000 Subject: Kill namespace pollution in getrpcent.c. Silence other rpc warnings by fixing prototypes. Fix global stuff so it should behave itself properly now, -Erik --- libc/inet/rpc/getrpcent.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libc/inet/rpc/getrpcent.c') diff --git a/libc/inet/rpc/getrpcent.c b/libc/inet/rpc/getrpcent.c index 283c3387e..e290449c0 100644 --- a/libc/inet/rpc/getrpcent.c +++ b/libc/inet/rpc/getrpcent.c @@ -41,11 +41,12 @@ #include #include #include +#include /* * Internet version. */ -struct rpcdata { +static struct rpcdata { FILE *rpcf; char *current; int currentlen; @@ -58,12 +59,10 @@ struct rpcdata { } *rpcdata; static struct rpcent *interpret(const char *val, int len); -struct hostent *gethostent(); -char *inet_ntoa(); static char RPCDB[] = "/etc/rpc"; -static struct rpcdata *_rpcdata() +static struct rpcdata *_rpcdata(void) { register struct rpcdata *d = rpcdata; @@ -169,8 +168,7 @@ struct rpcent *getrpcent() } #ifdef __linux__ -static char *firstwhite(s) -char *s; +static char *firstwhite(char *s) { char *s1, *s2; -- cgit v1.2.3