summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/getrpcent.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-07 07:25:57 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-07 07:25:57 +0000
commit45f1824dc839fb6401cd6e061924a604438b2bed (patch)
tree541539a86a0ddc1120fec25bcc71774da26f783b /libc/inet/rpc/getrpcent.c
parentf6fcd28c186a9ff0544e92c32ec61b871aa30b8f (diff)
Kill namespace pollution in getrpcent.c. Silence other rpc warnings
by fixing prototypes. Fix global stuff so it should behave itself properly now, -Erik
Diffstat (limited to 'libc/inet/rpc/getrpcent.c')
-rw-r--r--libc/inet/rpc/getrpcent.c10
1 files changed, 4 insertions, 6 deletions
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 <rpc/rpc.h>
#include <netdb.h>
#include <sys/socket.h>
+#include <arpa/inet.h>
/*
* 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;