diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-07-07 07:25:57 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-07-07 07:25:57 +0000 |
commit | 45f1824dc839fb6401cd6e061924a604438b2bed (patch) | |
tree | 541539a86a0ddc1120fec25bcc71774da26f783b /libc/inet/rpc/rcmd.c | |
parent | f6fcd28c186a9ff0544e92c32ec61b871aa30b8f (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/rcmd.c')
-rw-r--r-- | libc/inet/rpc/rcmd.c | 21 |
1 files changed, 5 insertions, 16 deletions
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; |