about summary refs log tree commit diff
path: root/inet/rcmd.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-26 22:23:27 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-26 22:23:27 +0000
commit70e22d49c55bfc1b5108d2a726183795b41b2a45 (patch)
tree1440d36d1916a6914c0417074b0e9e6a959b9f1a /inet/rcmd.c
parent81d7b354616fca46fa396f1763e1490acf8e018c (diff)
downloadglibc-70e22d49c55bfc1b5108d2a726183795b41b2a45.tar.gz
glibc-70e22d49c55bfc1b5108d2a726183795b41b2a45.tar.xz
glibc-70e22d49c55bfc1b5108d2a726183795b41b2a45.zip
Update.
	* inet/rcmd.c (ruserok): Use iruserok2 not iruserok.
Diffstat (limited to 'inet/rcmd.c')
-rw-r--r--inet/rcmd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 122668da8f..ace393fa5e 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -56,7 +56,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 *));
-int iruserok (u_int32_t raddr, int superuser, const char *ruser, *luser);
+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);
 
 
 int
@@ -286,7 +289,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;