summaryrefslogtreecommitdiff
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-03-15 00:41:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-03-15 00:41:29 +0000
commit22eb77a8bd9284ff55e7f91c659398a9a554766a (patch)
treea28c1053918bf9acff5523fc5d5d0b958b776fbb /usr.bin/script/script.c
parentb89e57b4b2848230b0a05f0d361e996015aecf61 (diff)
tzfile.h is an internal header that should never have been installed.
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 056242afc76..83b3cce43cd 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: script.c,v 1.25 2009/10/27 23:59:43 deraadt Exp $ */
+/* $OpenBSD: script.c,v 1.26 2015/03/15 00:41:28 millert Exp $ */
/* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */
/*
@@ -69,7 +69,6 @@
#include <stdlib.h>
#include <string.h>
#include <termios.h>
-#include <tzfile.h>
#include <unistd.h>
#include <util.h>
@@ -242,7 +241,7 @@ dooutput(void)
sa.sa_handler = scriptflush;
(void)sigaction(SIGALRM, &sa, NULL);
- value.it_interval.tv_sec = SECSPERMIN / 2;
+ value.it_interval.tv_sec = 30;
value.it_interval.tv_usec = 0;
value.it_value = value.it_interval;
(void)setitimer(ITIMER_REAL, &value, NULL);