diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-13 06:12:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-13 06:12:19 +0000 |
commit | 731317961dd78a8a6a84be2b662b9691fcf40d5a (patch) | |
tree | 642f051b45a10e806a55322912dad11e53435ab7 /usr.bin/mg/ttyio.c | |
parent | f54a169ac01105217cbf6e3dfa39f465f0bde571 (diff) |
The start of KNF + -Wall. The code has been run through indent but
needs hand fixup. I stopped at keymap.c...
Diffstat (limited to 'usr.bin/mg/ttyio.c')
-rw-r--r-- | usr.bin/mg/ttyio.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/usr.bin/mg/ttyio.c b/usr.bin/mg/ttyio.c index 40136b48ab8..8df4fe0dc0e 100644 --- a/usr.bin/mg/ttyio.c +++ b/usr.bin/mg/ttyio.c @@ -28,19 +28,6 @@ struct termios newtty; int nrow; /* Terminal size, rows. */ int ncol; /* Terminal size, columns. */ -/* XXX - move most of these to def.h? */ -void ttopen __P((void)); -int ttraw __P((void)); -void ttclose __P((void)); -int ttcooked __P((void)); -void ttputc __P((int)); -void ttflush __P((void)); -int ttgetc __P((void)); -void setttysize __P((void)); -int typeahead __P((void)); -void panic __P((char *)); -int ttwait __P((void)); - /* * This function gets called once, to set up the terminal. * On systems w/o TCSASOFT we turn off off flow control, @@ -128,7 +115,7 @@ ttcooked() * Write character to the display. Characters are buffered up, * to make things a little bit more efficient. */ -void +int ttputc(c) int c; { @@ -136,6 +123,7 @@ ttputc(c) if (nobuf >= NOBUF) ttflush(); obuf[nobuf++] = c; + return(c); } /* @@ -209,7 +197,7 @@ typeahead() /* * panic - just exit, as quickly as we can. */ -void +VOID panic(s) char *s; { |