Use MaxHostNameLen and MaxPathLen

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@536 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-05-13 02:07:52 +00:00
parent 69cfc74ba3
commit 446b212817
14 changed files with 38 additions and 44 deletions

View File

@@ -72,8 +72,8 @@ RCSID("$Id$");
#include <netinet/ip.h>
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
#ifndef MaxHostNameLen
#define MaxHostNameLen 64
#endif
#if defined(IPPROTO_IP) && defined(IP_TOS)
@@ -81,7 +81,7 @@ int tos = -1;
#endif /* defined(IPPROTO_IP) && defined(IP_TOS) */
char *hostname;
static char _hostname[MAXHOSTNAMELEN];
static char _hostname[MaxHostNameLen];
extern char *getenv();

View File

@@ -48,7 +48,7 @@ RCSID("$Id$");
#ifdef NEWINIT
#include <initreq.h>
int utmp_len = MAXHOSTNAMELEN; /* sizeof(init_request.host) */
int utmp_len = MaxHostNameLen; /* sizeof(init_request.host) */
#else /* NEWINIT*/
# ifdef HAVE_UTMPX_H
# include <utmpx.h>

View File

@@ -789,13 +789,10 @@ terminaltypeok(s)
return(1);
}
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
#endif /* MAXHOSTNAMELEN */
char *hostname;
char host_name[MAXHOSTNAMELEN];
char remote_host_name[MAXHOSTNAMELEN];
char host_name[MaxHostNameLen];
char remote_host_name[MaxHostNameLen];
#ifndef convex
extern void telnet P((int, int));