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 1dezJI-00020r-MZ for barebox@lists.infradead.org; Tue, 08 Aug 2017 07:52:18 +0000 Message-ID: <1502178714.2934.21.camel@pengutronix.de> From: Lucas Stach Date: Tue, 08 Aug 2017 09:51:54 +0200 In-Reply-To: <20170807221042.19700-2-gael.portay@savoirfairelinux.com> References: <20170807221042.19700-1-gael.portay@savoirfairelinux.com> <20170807221042.19700-2-gael.portay@savoirfairelinux.com> 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 QW0gTW9udGFnLCBkZW4gMDcuMDguMjAxNywgMTg6MTAgLTA0MDAgc2NocmllYiBHYcOrbCBQT1JU QVk6Cj4gVGhlIGdldGMgZnVuY3Rpb24gbWF5IHJldHVybiBhbiBlcnJubyBjb2RlIGlmIGFuIGVy cm9yIGhhcHBlbnMuCj4gCj4gVGhpcyBwYXRjaCBwcmV2ZW50cyByZWFkbGluZSBmcm9tIHByaW50 aW5nIGEgbm9uIHByaW50YWJsZSBjaGFyYWN0ZXIgYW5kCj4gZnJvbSBsb29waW5nIHRvIGluZmlu aXR5IGFuZCBiZXlvbmcuCj4gCj4gU2lnbmVkLW9mZi1ieTogR2HDq2wgUE9SVEFZIDxnYWVsLnBv cnRheUBzYXZvaXJmYWlyZWxpbnV4LmNvbT4KPiAtLS0KPiAgbGliL3JlYWRsaW5lX3NpbXBsZS5j IHwgMiArKwo+ICAxIGZpbGUgY2hhbmdlZCwgMiBpbnN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