From patchwork Wed Oct 26 10:21:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 121874 X-Patchwork-Delegate: wd@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 56F181007D9 for ; Wed, 26 Oct 2011 21:21:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C34812934B; Wed, 26 Oct 2011 12:21:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WU4iIM1eIE5f; Wed, 26 Oct 2011 12:21:38 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1F3F529367; Wed, 26 Oct 2011 12:21:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C655C29374 for ; Wed, 26 Oct 2011 12:21:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dnLLHmAaIO2I for ; Wed, 26 Oct 2011 12:21:34 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by theia.denx.de (Postfix) with ESMTPS id 55B7129309 for ; Wed, 26 Oct 2011 12:21:34 +0200 (CEST) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 49D621B4014; Wed, 26 Oct 2011 10:21:32 +0000 (UTC) From: Mike Frysinger To: u-boot@lists.denx.de Date: Wed, 26 Oct 2011 06:21:01 -0400 Message-Id: <1319624461-31904-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.6.1 Subject: [U-Boot] [PATCH] serial: sandbox: use ssize_t to match os_read X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Mike Frysinger Acked-by: Simon Glass --- drivers/serial/sandbox.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index cae6c94..814a0f9 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -50,7 +50,7 @@ void serial_puts(const char *str) int serial_getc(void) { char buf; - int count; + ssize_t count; count = os_read(0, &buf, 1); return count == 1 ? buf : 0;