$FreeBSD: ports/news/trn4/files/patch-term.c,v 1.1 2005/06/15 01:03:08 mph Exp $

--- 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);


syntax highlighted by Code2HTML, v. 0.9.1