u_long addrs[MAXADDRS + 1];
u_int32_t addrs[MAXADDRS + 1];
ruserok(rhost, superuser, ruser, luser)	const char *rhost, *ruser, *luser;	int superuser;{	struct hostent *hp;	char **ap;	int i;#define MAXADDRS	35	u_long addrs[MAXADDRS + 1];	if ((hp = gethostbyname(rhost)) == NULL)		return (-1);	for (i = 0, ap = hp->h_addr_list; *ap && i < MAXADDRS; ++ap, ++i)		bcopy(*ap, &addrs[i], sizeof(addrs[i]));	addrs[i] = 0;	for (i = 0; i < MAXADDRS && addrs[i]; i++)		if (iruserok(addrs[i], superuser, ruser, luser) == 0)			return (0);	return (-1);}