Module Name: src
Committed By: roy
Date: Wed Feb 10 10:34:59 UTC 2010
Modified Files:
src/usr.bin/tset: set.c
Log Message:
We need to cap reset_file/init_file.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/tset/set.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/tset/set.c
diff -u src/usr.bin/tset/set.c:1.13 src/usr.bin/tset/set.c:1.14
--- src/usr.bin/tset/set.c:1.13 Wed Feb 3 15:34:46 2010
+++ src/usr.bin/tset/set.c Wed Feb 10 10:34:59 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: set.c,v 1.13 2010/02/03 15:34:46 roy Exp $ */
+/* $NetBSD: set.c,v 1.14 2010/02/10 10:34:59 roy Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -30,13 +30,9 @@
*/
#include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)set.c 8.2 (Berkeley) 2/28/94";
-#endif
-__RCSID("$NetBSD: set.c,v 1.13 2010/02/03 15:34:46 roy Exp $");
-#endif /* not lint */
+__RCSID("$NetBSD: set.c,v 1.14 2010/02/10 10:34:59 roy Exp $");
+#include <err.h>
#include <stdio.h>
#include <term.h>
#include <termios.h>
@@ -202,6 +198,7 @@
mode.c_lflag |= (ECHOE | ECHOK);
}
+#
/* Output startup string. */
void
set_init()
@@ -227,7 +224,7 @@
settle = 1;
}
if ((bp = reset_file) || (bp = init_file)) {
- tputs(bp, 0, outc);
+ tset_cat(bp);
settle = 1;
}
}