summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-03-15 00:41:27 +0000
committermillert <millert@openbsd.org>2015-03-15 00:41:27 +0000
commitf7055df57d065ba4f741cc0da1e46b156de29446 (patch)
treeafea67933d21514295f11d6bc76d0204443150d3 /usr.bin/script/script.c
parentEliminate the question 'Which cd?' and just show the available cd's (diff)
downloadwireguard-openbsd-f7055df57d065ba4f741cc0da1e46b156de29446.tar.xz
wireguard-openbsd-f7055df57d065ba4f741cc0da1e46b156de29446.zip
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);