=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/tty.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/mg/tty.c 2002/07/01 18:01:40 1.17 +++ src/usr.bin/mg/tty.c 2002/08/23 18:43:49 1.18 @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.17 2002/07/01 18:01:40 vincent Exp $ */ +/* $OpenBSD: tty.c,v 1.18 2002/08/23 18:43:49 vincent Exp $ */ /* * Terminfo display driver @@ -52,7 +52,7 @@ * gets started up. */ void -ttinit() +ttinit(void) { char *tv_stype, *p; @@ -126,14 +126,16 @@ * The keypad_xmit doesn't really belong here but... */ void -ttreinit() +ttreinit(void) { - if (enter_ca_mode) + if (enter_ca_mode) { /* enter application mode */ putpad(enter_ca_mode, 1); - if (keypad_xmit) + } + if (keypad_xmit) { /* turn on keypad */ putpad(keypad_xmit, 1); + } ttresize(); } @@ -145,7 +147,7 @@ * query the display for the increment, and put it back to what it was. */ void -tttidy() +tttidy(void) { #ifdef XKEYS ttykeymaptidy(); @@ -162,8 +164,7 @@ * location last time! */ void -ttmove(row, col) - int row, col; +ttmove(int row, int col) { if (ttrow != row || ttcol != col) { putpad(tgoto(cursor_address, col, row), 1); @@ -176,7 +177,7 @@ * Erase to end of line. */ void -tteeol() +tteeol(void) { int i; @@ -194,7 +195,7 @@ * Erase to end of page. */ void -tteeop() +tteeop(void) { int line; @@ -232,8 +233,7 @@ * and delete line sequences. */ void -ttinsl(row, bot, nchunk) - int row, bot, nchunk; +ttinsl(int row, int bot, int nchunk) { int i, nl; @@ -404,7 +404,7 @@ * new and old settings. */ void -ttresize() +ttresize(void) { int newrow = 0, newcol = 0; @@ -430,8 +430,7 @@ */ /* ARGSUSED */ static int -fakec(c) - char c; +fakec(char c) { cci++; return 0; @@ -439,8 +438,7 @@ /* calculate the cost of doing string s */ static int -charcost(s) - char *s; +charcost(char *s) { int cci = 0;