Mercurial > hg > forks > pwpunix
diff pwplib/tty.c @ 54:85671798fdb3
Various code cleanups, cosmetics, warning fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 May 2010 01:22:51 +0300 |
parents | d803c129c1e2 |
children | 77f40a3c0095 |
line wrap: on
line diff
--- a/pwplib/tty.c Wed May 26 00:42:25 2010 +0300 +++ b/pwplib/tty.c Wed May 26 01:22:51 2010 +0300 @@ -68,7 +68,7 @@ tty_init_termios(); - memset((void*)&fdset,0,sizeof(fd_set)); + memset(&fdset, 0, sizeof(fd_set)); FD_SET(0,&fdset); timeout.tv_sec=0; timeout.tv_usec=250000; @@ -208,7 +208,7 @@ { #ifdef HAVE_TTYSTUFF - int colors=2,chars=2,rasters=1; + /* int colors=2,chars=2,rasters=1; */ pwp_tty.fd=2; /* stderr */ @@ -227,7 +227,7 @@ pwpwrite("* terminal on stdout: "); - switch((int)pwp_tty.type) + switch(pwp_tty.type) { case(TTY_DUMB): pwpwrite("dumb or unsupported\n");