headers, casts, and use of time_t
This commit is contained in:
parent
dbacaea969
commit
f795659ece
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cmds.c,v 1.3 1994/12/08 09:30:43 jtc Exp $ */
|
||||
/* $NetBSD: cmds.c,v 1.4 1994/12/24 17:56:23 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)cmds.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: cmds.c,v 1.3 1994/12/08 09:30:43 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: cmds.c,v 1.4 1994/12/24 17:56:23 cgd Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "tip.h"
|
||||
@ -348,7 +348,7 @@ transmit(fd, eofchars, command)
|
||||
printf("\r%d", ++lcount);
|
||||
if (boolean(value(ECHOCHECK))) {
|
||||
timedout = 0;
|
||||
alarm((int)value(ETIMEOUT));
|
||||
alarm((long)value(ETIMEOUT));
|
||||
do { /* wait for prompt */
|
||||
read(FD, (char *)&c, 1);
|
||||
if (timedout || stop) {
|
||||
@ -435,7 +435,7 @@ send(c)
|
||||
}
|
||||
tryagain:
|
||||
timedout = 0;
|
||||
alarm((int)value(ETIMEOUT));
|
||||
alarm((long)value(ETIMEOUT));
|
||||
read(FD, &cc, 1);
|
||||
alarm(0);
|
||||
if (timedout) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hunt.c,v 1.3 1994/12/08 09:30:50 jtc Exp $ */
|
||||
/* $NetBSD: hunt.c,v 1.4 1994/12/24 17:56:27 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)hunt.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: hunt.c,v 1.3 1994/12/08 09:30:50 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: hunt.c,v 1.4 1994/12/24 17:56:27 cgd Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "tip.h"
|
||||
@ -55,6 +55,7 @@ dead()
|
||||
longjmp(deadline, 1);
|
||||
}
|
||||
|
||||
long
|
||||
hunt(name)
|
||||
char *name;
|
||||
{
|
||||
@ -89,10 +90,10 @@ hunt(name)
|
||||
ioctl(FD, TIOCEXCL, 0);
|
||||
ioctl(FD, TIOCHPCL, 0);
|
||||
signal(SIGALRM, SIG_DFL);
|
||||
return ((int)cp);
|
||||
return ((long)cp);
|
||||
}
|
||||
(void)uu_unlock(uucplock);
|
||||
}
|
||||
signal(SIGALRM, f);
|
||||
return (deadfl ? -1 : (int)cp);
|
||||
return (deadfl ? -1 : (long)cp);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: log.c,v 1.3 1994/12/08 09:30:53 jtc Exp $ */
|
||||
/* $NetBSD: log.c,v 1.4 1994/12/24 17:56:28 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: log.c,v 1.3 1994/12/08 09:30:53 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: log.c,v 1.4 1994/12/24 17:56:28 cgd Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "tip.h"
|
||||
@ -54,7 +54,7 @@ logent(group, num, acu, message)
|
||||
{
|
||||
char *user, *timestamp;
|
||||
struct passwd *pwd;
|
||||
long t;
|
||||
time_t t;
|
||||
|
||||
if (flog == NULL)
|
||||
return;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: remcap.c,v 1.4 1994/12/08 09:31:01 jtc Exp $ */
|
||||
/* $NetBSD: remcap.c,v 1.5 1994/12/24 17:56:29 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)remcap.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: remcap.c,v 1.4 1994/12/08 09:31:01 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: remcap.c,v 1.5 1994/12/24 17:56:29 cgd Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -48,8 +48,8 @@ static char rcsid[] = "$NetBSD: remcap.c,v 1.4 1994/12/08 09:31:01 jtc Exp $";
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include "pathnames.h"
|
||||
|
||||
#ifndef BUFSIZ
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uucplock.c,v 1.4 1994/12/08 09:31:14 jtc Exp $ */
|
||||
/* $NetBSD: uucplock.c,v 1.5 1994/12/24 17:56:30 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
@ -37,10 +37,11 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)uucplock.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: uucplock.c,v 1.4 1994/12/08 09:31:14 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: uucplock.c,v 1.5 1994/12/24 17:56:30 cgd Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/dir.h>
|
||||
|
Loading…
Reference in New Issue
Block a user