summaryrefslogtreecommitdiff
path: root/usr.bin/tset/set.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-04-25 04:30:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-04-25 04:30:40 +0000
commit701bec540e909934a46a180c85cb74a038839284 (patch)
tree96048420aac8117a64e67d90649a07423119d007 /usr.bin/tset/set.c
parent217a00fc27e381acbe59a63f916cc416be3a51f9 (diff)
fix some minor nits:
o no need to flush stderr as it is not buffered o use putc to print a newline, not fprintf o set histchars to be null when we set noglob (and undo of course).
Diffstat (limited to 'usr.bin/tset/set.c')
-rw-r--r--usr.bin/tset/set.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tset/set.c b/usr.bin/tset/set.c
index d3093c761ee..ffad7e96fb4 100644
--- a/usr.bin/tset/set.c
+++ b/usr.bin/tset/set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: set.c,v 1.2 1996/06/26 05:41:56 deraadt Exp $ */
+/* $OpenBSD: set.c,v 1.3 1998/04/25 04:30:37 millert Exp $ */
/* $NetBSD: set.c,v 1.6 1994/12/07 05:08:10 jtc Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)set.c 8.2 (Berkeley) 2/28/94";
#endif
-static char rcsid[] = "$OpenBSD: set.c,v 1.2 1996/06/26 05:41:56 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: set.c,v 1.3 1998/04/25 04:30:37 millert Exp $";
#endif /* not lint */
#include <termios.h>
@@ -273,7 +273,6 @@ set_init()
if (settle) {
(void)putc('\r', stderr);
- (void)fflush(stderr);
(void)sleep(1); /* Settle the terminal. */
}
}
@@ -321,7 +320,7 @@ set_tabs()
/* Set the tab. */
tputs(set_tab, 0, outc);
}
- putc('\r', stderr);
+ (void)putc('\r', stderr);
return (1);
}
return (0);