From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1df6Ye-00013N-RT for barebox@lists.infradead.org; Tue, 08 Aug 2017 15:38:09 +0000 Message-ID: <1502206574.2934.93.camel@pengutronix.de> From: Lucas Stach Date: Tue, 08 Aug 2017 17:36:14 +0200 In-Reply-To: <20170808152049.njl24tcwafccebwt@gportay> References: <20170807221042.19700-1-gael.portay@savoirfairelinux.com> <20170807221042.19700-2-gael.portay@savoirfairelinux.com> <1502178714.2934.21.camel@pengutronix.de> <20170808152049.njl24tcwafccebwt@gportay> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/2] readline_simple: return -1 if getc fails To: =?ISO-8859-1?Q?Ga=EBl?= PORTAY Cc: barebox@lists.infradead.org QW0gRGllbnN0YWcsIGRlbiAwOC4wOC4yMDE3LCAxMToyMCAtMDQwMCBzY2hyaWViIEdhw6tsIFBP UlRBWToKPiBIaSBMdWNhcywKPiAKPiBPbiBUdWUsIEF1ZyAwOCwgMjAxNyBhdCAwOTo1MTo1NEFN ICswMjAwLCBMdWNhcyBTdGFjaCB3cm90ZToKPiA+IEFtIE1vbnRhZywgZGVuIDA3LjA4LjIwMTcs IDE4OjEwIC0wNDAwIHNjaHJpZWIgR2HDq2wgUE9SVEFZOgo+ID4gPiBUaGUgZ2V0YyBmdW5jdGlv biBtYXkgcmV0dXJuIGFuIGVycm5vIGNvZGUgaWYgYW4gZXJyb3IgaGFwcGVucy4KPiA+ID4gCj4g PiA+IFRoaXMgcGF0Y2ggcHJldmVudHMgcmVhZGxpbmUgZnJvbSBwcmludGluZyBhIG5vbiBwcm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