Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit FIONREAD takes int as an argument (Ingo Schwarze)
details: https://anonhg.NetBSD.org/src/rev/f7863f28e4e3
branches: trunk
changeset: 344707:f7863f28e4e3
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 12 11:15:46 2016 +0000
description:
FIONREAD takes int as an argument (Ingo Schwarze)
diffstat:
lib/libedit/read.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e3f081fe3402 -r f7863f28e4e3 lib/libedit/read.c
--- a/lib/libedit/read.c Tue Apr 12 10:54:29 2016 +0000
+++ b/lib/libedit/read.c Tue Apr 12 11:15:46 2016 +0000
@@ -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 @@
#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) {
Home |
Main Index |
Thread Index |
Old Index