changed u_int32_t' to unsigned' in iruserok.

add includes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4094 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-12-04 03:47:56 +00:00
parent 5510ee3cdf
commit 44b10449f1

View File

@@ -31,10 +31,33 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include "roken.h" #ifdef HAVE_CONFIG_H
#include <config.h>
RCSID("$Id$"); RCSID("$Id$");
#endif
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_NETINET6_IN6_H
#include <netinet6/in6.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include "roken.h"
int __check_rhosts_file = 1; int __check_rhosts_file = 1;
char *__rcmd_errstr = 0; char *__rcmd_errstr = 0;
@@ -44,7 +67,7 @@ char *__rcmd_errstr = 0;
*/ */
static static
int int
__icheckhost(u_int32_t raddr, const char *lhost) __icheckhost(unsigned raddr, const char *lhost)
{ {
struct hostent *hp; struct hostent *hp;
u_long laddr; u_long laddr;
@@ -81,7 +104,7 @@ innetgr(const char *netgroup, const char *machine,
*/ */
static static
int int
__ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, __ivaliduser(FILE *hostf, unsigned raddr, const char *luser,
const char *ruser) const char *ruser)
{ {
char *user, *p; char *user, *p;
@@ -210,7 +233,7 @@ __ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser,
* Returns 0 if ok, -1 if not ok. * Returns 0 if ok, -1 if not ok.
*/ */
int int
iruserok(u_int32_t raddr, int superuser, const char *ruser, const char *luser) iruserok(unsigned raddr, int superuser, const char *ruser, const char *luser)
{ {
char *cp; char *cp;
struct stat sbuf; struct stat sbuf;