From e445c3ad8a040ce5aa9ffd47e72de71f7cd3dd16 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 20 Dec 2004 11:34:27 +0000 Subject: 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@ --- bin/ksh/tty.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin/ksh/tty.c') 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 @@ -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); -- cgit v1.2.3