summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/talk/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/talk/io.c b/usr.bin/talk/io.c
index bcbfe6f..6cfa7f1 100644
--- a/usr.bin/talk/io.c
+++ b/usr.bin/talk/io.c
@@ -130,7 +130,7 @@ talk()
* curses's output routines would screw up
*/
int i;
- ioctl(0, FIONREAD, (struct sgttyb *) &nb);
+ ioctl(0, FIONREAD, (void *) &nb);
nb = read(STDIN_FILENO, buf, nb);
display(&my_win, buf, nb);
/* might lose data here because sockt is non-blocking */
OpenPOWER on IntegriCloud