summaryrefslogtreecommitdiff
path: root/libexec/comsat
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1994-08-05 01:01:16 +0000
committerjtc <jtc@NetBSD.org>1994-08-05 01:01:16 +0000
commitc3a4cec7916b29a85526cd8345fdb50f2cad26cd (patch)
tree743c85967b96da5ec8fd5e5800412c95abb757c2 /libexec/comsat
parent1f568d1226bce1b7a94f837ca664f5e5c5d34db3 (diff)
Include proper header files to bring prototypes into scope
Diffstat (limited to 'libexec/comsat')
-rw-r--r--libexec/comsat/comsat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c
index d42d1d490d8..7d0458990c0 100644
--- a/libexec/comsat/comsat.c
+++ b/libexec/comsat/comsat.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)comsat.c 5.24 (Berkeley) 2/25/91";*/
-static char rcsid[] = "$Id: comsat.c,v 1.4 1994/02/01 00:32:22 cgd Exp $";
+static char rcsid[] = "$Id: comsat.c,v 1.5 1994/08/05 01:01:16 jtc Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -51,6 +51,7 @@ static char rcsid[] = "$Id: comsat.c,v 1.4 1994/02/01 00:32:22 cgd Exp $";
#include <netinet/in.h>
#include <stdio.h>
+#include <stdlib.h>
#include <sgtty.h>
#include <utmp.h>
#include <signal.h>
@@ -60,6 +61,7 @@ static char rcsid[] = "$Id: comsat.c,v 1.4 1994/02/01 00:32:22 cgd Exp $";
#include <ctype.h>
#include <string.h>
#include <pwd.h>
+#include <unistd.h>
#include <paths.h>
int debug = 0;
@@ -137,8 +139,6 @@ onalrm()
static u_int utmpsize; /* last malloced size for utmp */
static u_int utmpmtime; /* last modification time for utmp */
struct stat statbf;
- off_t lseek();
- char *malloc(), *realloc();
if (time((time_t *)NULL) - lastmsgtime >= MAXIDLE)
exit(0);