summaryrefslogtreecommitdiff
path: root/bin/ksh/tty.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-12-20 11:34:27 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-12-20 11:34:27 +0000
commite445c3ad8a040ce5aa9ffd47e72de71f7cd3dd16 (patch)
treef321abeceffdba61fb97e64b666e8793cf6e1d4e /bin/ksh/tty.c
parentc6e78b160bb0e446bb146be6b8b66890b48e5b31 (diff)
Ansification plus some minor knf. No binary change on i386 and
sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
Diffstat (limited to 'bin/ksh/tty.c')
-rw-r--r--bin/ksh/tty.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/ksh/tty.c b/bin/ksh/tty.c
index e197eaffadb..f5748d3aa96 100644
--- a/bin/ksh/tty.c
+++ b/bin/ksh/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.5 2004/12/18 22:35:41 millert Exp $ */
+/* $OpenBSD: tty.c,v 1.6 2004/12/20 11:34:26 otto Exp $ */
#include "sh.h"
#include <sys/stat.h>
@@ -10,8 +10,7 @@
* foreground job completion and for setting up tty process group.
*/
void
-tty_init(init_ttystate)
- int init_ttystate;
+tty_init(int init_ttystate)
{
int do_close = 1;
int tfd;
@@ -58,7 +57,7 @@ tty_init(init_ttystate)
}
void
-tty_close()
+tty_close(void)
{
if (tty_fd >= 0) {
close(tty_fd);