Don't cast ioctl FIONREAD's argument to struct sgttyb *. This makes
no function changes, but removes an unnecessary reference to a deprecated struct. Obtained from: NetBSD (thorpej)
This commit is contained in:
parent
99d21d504c
commit
7045754fcf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120549
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user