From: Ulrich Drepper Date: Fri, 26 Nov 1999 22:21:44 +0000 (+0000) Subject: (ruserok): Use iruserok2 not iruserok. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5da8f1fdc29d6991b33f698b063ac07318e1ce5;p=thirdparty%2Fglibc.git (ruserok): Use iruserok2 not iruserok. --- diff --git a/inet/rcmd.c b/inet/rcmd.c index 5b478b35f78..26fe4d2e585 100644 --- a/inet/rcmd.c +++ b/inet/rcmd.c @@ -60,8 +60,10 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; int __ivaliduser __P ((FILE *, u_int32_t, const char *, const char *)); static int __ivaliduser2 __P ((FILE *, u_int32_t, const char *, const char *, const char *)); +static int iruserok2 (u_int32_t raddr, int superuser, const char *ruser, + const char *luser, const char *rhost); int iruserok (u_int32_t raddr, int superuser, const char *ruser, - const char*luser); + const char *luser); int @@ -291,7 +293,7 @@ ruserok(rhost, superuser, ruser, luser) for (ap = hp->h_addr_list; *ap; ++ap) { bcopy(*ap, &addr, sizeof(addr)); - if (iruserok(addr, superuser, ruser, luser, rhost) == 0) + if (iruserok2(addr, superuser, ruser, luser, rhost) == 0) return 0; } return -1;