From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp85.iad3a.emailsrvr.com ([173.203.187.85]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1df1Qx-00055g-Uj for barebox@lists.infradead.org; Tue, 08 Aug 2017 10:08:22 +0000 References: <20170807221042.19700-1-gael.portay@savoirfairelinux.com> <20170807221042.19700-2-gael.portay@savoirfairelinux.com> <1502178714.2934.21.camel@pengutronix.de> From: Ian Abbott Message-ID: Date: Tue, 8 Aug 2017 11:07:54 +0100 MIME-Version: 1.0 In-Reply-To: <1502178714.2934.21.camel@pengutronix.de> Content-Language: en-GB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" 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: Lucas Stach , =?UTF-8?Q?Ga=c3=abl_PORTAY?= Cc: barebox@lists.infradead.org T24gMDgvMDgvMTcgMDg6NTEsIEx1Y2FzIFN0YWNoIHdyb3RlOgo+IEFtIE1vbnRhZywgZGVuIDA3 LjA4LjIwMTcsIDE4OjEwIC0wNDAwIHNjaHJpZWIgR2HDq2wgUE9SVEFZOgo+PiBUaGUgZ2V0YyBm dW5jdGlvbiBtYXkgcmV0dXJuIGFuIGVycm5vIGNvZGUgaWYgYW4gZXJyb3IgaGFwcGVucy4KPj4K Pj4gVGhpcyBwYXRjaCBwcmV2ZW50cyByZWFkbGluZSBmcm9tIHByaW50aW5nIGEgbm9uIHByaW50 YWJsZSBjaGFyYWN0ZXIgYW5kCj4+IGZyb20gbG9vcGluZyB0byBpbmZpbml0eSBhbmQgYmV5b25n Lgo+Pgo+PiBTaWduZWQtb2ZmLWJ5OiBHYcOrbCBQT1JUQVkgPGdhZWwucG9ydGF5QHNhdm9pcmZh aXJlbGludXguY29tPgo+PiAtLS0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