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/rcmd.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'libc/inet/rpc/rcmd.c') diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index 861ede2d4..de7433d46 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -487,10 +487,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost) } /* This is the exported version. */ -int iruserok (raddr, superuser, ruser, luser) - u_int32_t raddr; - int superuser; - const char *ruser, *luser; +int iruserok (u_int32_t raddr, int superuser, const char * ruser, const char * luser) { return iruserok2 (raddr, superuser, ruser, luser, "-"); } @@ -508,10 +505,7 @@ int iruserok (raddr, superuser, ruser, luser) * Returns 0 if ok, -1 if not ok. */ int -__ivaliduser(hostf, raddr, luser, ruser) - FILE *hostf; - u_int32_t raddr; - const char *luser, *ruser; +__ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser) { return __ivaliduser2(hostf, raddr, luser, ruser, "-"); } @@ -519,10 +513,7 @@ __ivaliduser(hostf, raddr, luser, ruser) /* Returns 1 on positive match, 0 on no match, -1 on negative match. */ static int -__icheckhost (raddr, lhost, rhost) - u_int32_t raddr; - char *lhost; - const char *rhost; +__icheckhost (u_int32_t raddr, char *lhost, const char *rhost) { struct hostent *hp; u_int32_t laddr; @@ -589,8 +580,7 @@ __icheckhost (raddr, lhost, rhost) /* Returns 1 on positive match, 0 on no match, -1 on negative match. */ static int -__icheckuser (luser, ruser) - const char *luser, *ruser; +__icheckuser (const char *luser, const char *ruser) { /* @@ -623,8 +613,7 @@ __icheckuser (luser, ruser) * Returns 1 for blank lines (or only comment lines) and 0 otherwise */ static int -__isempty(p) - char *p; +__isempty(char *p) { while (*p && isspace (*p)) { ++p; -- cgit v1.2.3