Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tset We need to cap reset_file/init_file.
details: https://anonhg.NetBSD.org/src/rev/18314e019405
branches: trunk
changeset: 751982:18314e019405
user: roy <roy%NetBSD.org@localhost>
date: Wed Feb 10 10:34:59 2010 +0000
description:
We need to cap reset_file/init_file.
diffstat:
usr.bin/tset/set.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (42 lines):
diff -r 4524569a79c0 -r 18314e019405 usr.bin/tset/set.c
--- a/usr.bin/tset/set.c Wed Feb 10 10:34:31 2010 +0000
+++ b/usr.bin/tset/set.c Wed Feb 10 10:34:59 2010 +0000
@@ -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;
}
}
Home |
Main Index |
Thread Index |
Old Index