Mercurial > hg > forks > pwpunix
diff pwplib/tty.c @ 17:c60e531d19cd
Some misc. cleanups and minor warning removals.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 22 May 2010 20:32:49 +0300 |
parents | acb5694e93d9 |
children | 2c72092554fa |
line wrap: on
line diff
--- a/pwplib/tty.c Sat May 22 18:12:51 2010 +0300 +++ b/pwplib/tty.c Sat May 22 20:32:49 2010 +0300 @@ -11,12 +11,12 @@ #ifdef HAVE_TTYSTUFF -void tty_restore_termios() +void tty_restore_termios(void) { tcsetattr(STDIN,TCSADRAIN,&pwp_tty.setup); } -void tty_init_termios() +void tty_init_termios(void) { struct termios t; tcgetattr(STDIN,&t); @@ -29,10 +29,10 @@ t.c_cc[VTIME]=0; tcsetattr(STDIN,TCSADRAIN,&t); - pwp_regdestr(tty_restore_termios); + pwplib_regdestr(tty_restore_termios); } -void tty_getwinsize() +void tty_getwinsize(void) { # ifdef TIOCGWINSZ {struct winsize wsz; @@ -61,7 +61,7 @@ /******************************************************************/ -void tty_probe_raw() +void tty_probe_raw(void) { fd_set fdset; struct timeval timeout; @@ -150,7 +150,7 @@ /******************************************************************/ -int tty_probe() +int tty_probe(void) { char*tt; @@ -204,7 +204,7 @@ /******************************************************************/ -int tty_init() +int tty_init(void) { #ifdef HAVE_TTYSTUFF @@ -283,5 +283,3 @@ } #endif - -