summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-09-28 09:21:24 +0000
committertjr <tjr@FreeBSD.org>2003-09-28 09:21:24 +0000
commitfb7a83099d94d9780599773b5509a26ed37fd1af (patch)
tree5a3fba6b2c12ddd3fc147e87a5781a9b4966b372 /usr.bin/talk
parente6d1ceacacdd5a90a96e676d5d9dce36343419c3 (diff)
downloadFreeBSD-src-fb7a83099d94d9780599773b5509a26ed37fd1af.zip
FreeBSD-src-fb7a83099d94d9780599773b5509a26ed37fd1af.tar.gz
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)
Diffstat (limited to 'usr.bin/talk')
-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