summaryrefslogtreecommitdiff
path: root/libexec/talkd/talkd.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 05:10:13 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 05:10:13 +0000
commit35c43011c8305b4fdcd5d86da82f4a2e10046048 (patch)
tree572de23cd03e4272e456df008d3004db509c39a4 /libexec/talkd/talkd.c
parentad17f7a16a3b9364bc4fe8114510203c48d87696 (diff)
fix time differencies computations (orig from alan@parsys.co.uk, but
don't use difftime(3), it returns double) use <sys/queue.h> for queue maintanance
Diffstat (limited to 'libexec/talkd/talkd.c')
-rw-r--r--libexec/talkd/talkd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c
index fbeee46df40..eecec53f9c0 100644
--- a/libexec/talkd/talkd.c
+++ b/libexec/talkd/talkd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: talkd.c,v 1.2 1996/04/28 23:56:22 mickey Exp $ */
+/* $OpenBSD: talkd.c,v 1.3 1996/07/15 05:10:12 mickey Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)talkd.c 5.8 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$Id: talkd.c,v 1.2 1996/04/28 23:56:22 mickey Exp $";
+static char rcsid[] = "$Id: talkd.c,v 1.3 1996/07/15 05:10:12 mickey Exp $";
#endif /* not lint */
/*
@@ -93,6 +93,7 @@ main(argc, argv)
}
if (argc > 1 && strcmp(argv[1], "-d") == 0)
debug = 1;
+ init_table();
signal(SIGALRM, timeout);
alarm(TIMEOUT);
for (;;) {