From 225cdd12ecf660980e950cd55b56dbc689354533 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 13 Apr 2016 09:42:42 +0000 Subject: Re-introduce the following commit: OpenBSD read.c rev. 1.4 1997/06/10 20:10:13 millert FIONREAD takes int *, not long * It got lost in the following merge from NetBSD: OpenBSD read.c rev. 1.10 2003/10/31 08:42:24 otto OK millert@ martijn@ --- lib/libedit/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libedit') diff --git a/lib/libedit/read.c b/lib/libedit/read.c index ba75562a012..d1b1f6d7283 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.37 2016/04/12 09:07:21 schwarze Exp $ */ +/* $OpenBSD: read.c,v 1.38 2016/04/13 09:42:41 schwarze Exp $ */ /* $NetBSD: read.c,v 1.92 2016/04/12 00:16:06 christos Exp $ */ /*- @@ -468,7 +468,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) { -- cgit v1.2.3