*** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@216 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -854,7 +854,9 @@ void doit(struct sockaddr_in *who)
|
|||||||
(void) gethostname(host_name, sizeof (host_name));
|
(void) gethostname(host_name, sizeof (host_name));
|
||||||
hostname = host_name;
|
hostname = host_name;
|
||||||
|
|
||||||
|
#ifndef abs
|
||||||
#define abs(x) ((x < 0) ? (-x) : x)
|
#define abs(x) ((x < 0) ? (-x) : x)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define TRIM_HOSTNAME
|
#define TRIM_HOSTNAME
|
||||||
#ifdef TRIM_HOSTNAME
|
#ifdef TRIM_HOSTNAME
|
||||||
|
@@ -378,13 +378,9 @@ fatalperror(f, msg)
|
|||||||
|
|
||||||
char editedhost[32];
|
char editedhost[32];
|
||||||
|
|
||||||
void
|
void edithost(char *pat, char *host)
|
||||||
edithost(pat, host)
|
|
||||||
register char *pat;
|
|
||||||
register char *host;
|
|
||||||
{
|
{
|
||||||
register char *res = editedhost;
|
register char *res = editedhost;
|
||||||
char *strncpy();
|
|
||||||
|
|
||||||
if (!pat)
|
if (!pat)
|
||||||
pat = "";
|
pat = "";
|
||||||
@@ -444,10 +440,7 @@ putchr(cc)
|
|||||||
static char fmtstr[] = { "%l:%M\
|
static char fmtstr[] = { "%l:%M\
|
||||||
%P on %A, %d %B %Y" };
|
%P on %A, %d %B %Y" };
|
||||||
|
|
||||||
void
|
void putf(char *cp, char *where)
|
||||||
putf(cp, where)
|
|
||||||
register char *cp;
|
|
||||||
char *where;
|
|
||||||
{
|
{
|
||||||
#ifdef HAVE_UNAME
|
#ifdef HAVE_UNAME
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
@@ -455,11 +448,6 @@ putf(cp, where)
|
|||||||
char *slash;
|
char *slash;
|
||||||
time_t t;
|
time_t t;
|
||||||
char db[100];
|
char db[100];
|
||||||
#ifdef STREAMSPTY
|
|
||||||
extern char *strchr();
|
|
||||||
#else
|
|
||||||
extern char *strrchr();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* if we don't have uname, set these to sensible values */
|
/* if we don't have uname, set these to sensible values */
|
||||||
char *sysname = "Unix",
|
char *sysname = "Unix",
|
||||||
|
Reference in New Issue
Block a user