Module Name:    src
Committed By:   christos
Date:           Tue Apr 12 11:15:46 UTC 2016

Modified Files:
        src/lib/libedit: read.c

Log Message:
FIONREAD takes int as an argument (Ingo Schwarze)


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/lib/libedit/read.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/read.c
diff -u src/lib/libedit/read.c:1.92 src/lib/libedit/read.c:1.93
--- src/lib/libedit/read.c:1.92	Mon Apr 11 20:16:06 2016
+++ src/lib/libedit/read.c	Tue Apr 12 07:15:46 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: read.c,v 1.92 2016/04/12 00:16:06 christos Exp $	*/
+/*	$NetBSD: read.c,v 1.93 2016/04/12 11:15:46 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)read.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: read.c,v 1.92 2016/04/12 00:16:06 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.93 2016/04/12 11:15:46 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -474,7 +474,7 @@ el_wgets(EditLine *el, int *nread)
 
 #ifdef FIONREAD
 	if (el->el_tty.t_mode == EX_IO && el->el_chared.c_macro.level < 0) {
-		long chrs = 0;
+		int chrs = 0;
 
 		(void) ioctl(el->el_infd, FIONREAD, &chrs);
 		if (chrs == 0) {

Reply via email to