diff options
author | tjr <tjr@FreeBSD.org> | 2003-09-28 09:21:24 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-09-28 09:21:24 +0000 |
commit | fb7a83099d94d9780599773b5509a26ed37fd1af (patch) | |
tree | 5a3fba6b2c12ddd3fc147e87a5781a9b4966b372 /usr.bin/talk | |
parent | e6d1ceacacdd5a90a96e676d5d9dce36343419c3 (diff) | |
download | FreeBSD-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.c | 2 |
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 */ |