1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/news/trn4/files/patch-term.c
Matthew Hunt a044150c79 Fix incorrect ioctl arguments size (affects big-endian 64-bit platforms).
Submitted by:	Marc Espie <espie@openbsd.org> via naddy
2005-06-15 01:03:08 +00:00

18 lines
275 B
C

$FreeBSD$
--- term.c.orig
+++ term.c
@@ -662,9 +662,9 @@
#endif
if (check_term) {
# ifdef FIONREAD
- long iocount;
+ int iocount;
ioctl(0, FIONREAD, &iocount);
- return (int)iocount;
+ return iocount;
# else /* !FIONREAD */
# ifdef HAS_RDCHK
return rdchk(0);