From patchwork Wed Apr 13 13:20:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shevchenko Andriy (EXT-Teleca/Helsinki)" X-Patchwork-Id: 91004 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A8606B6F7E for ; Wed, 13 Apr 2011 23:19:53 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9zxL-0002D3-Rr; Wed, 13 Apr 2011 13:18:03 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Q9zxK-0002Mm-Di; Wed, 13 Apr 2011 13:18:02 +0000 Received: from smtp.nokia.com ([147.243.1.47] helo=mgw-sa01.nokia.com) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9zxG-0002MP-6S for linux-mtd@lists.infradead.org; Wed, 13 Apr 2011 13:17:58 +0000 Received: from nokia.com (localhost [127.0.0.1]) by mgw-sa01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p3DDHpUs031503 for ; Wed, 13 Apr 2011 16:17:51 +0300 Received: from fs-test.research.nokia.com ([esdhcp05135.research.nokia.com [172.21.51.35]]) by mgw-sa01.nokia.com with ESMTP id p3DDHkAf031433 ; Wed, 13 Apr 2011 16:17:46 +0300 Received: by fs-test.research.nokia.com (Postfix, from userid 1001) id 68E68D06D9; Wed, 13 Apr 2011 16:20:30 +0300 (EEST) From: Andy Shevchenko To: Artem Bityutskiy , linux-mtd@lists.infradead.org Subject: [PATCHv1 3/5] tests: fs-tests: read() returns ssize_t value Date: Wed, 13 Apr 2011 16:20:27 +0300 Message-Id: <8aa731c3a7a071bb9216500d72c9a8d7a7e2b830.1302700658.git.ext-andriy.shevchenko@nokia.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <865774bea767bf615bbaf79139448aef65d55202.1302700658.git.ext-andriy.shevchenko@nokia.com> In-Reply-To: References: <865774bea767bf615bbaf79139448aef65d55202.1302700658.git.ext-andriy.shevchenko@nokia.com> References: X-Nokia-AV: Clean X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110413_091758_597243_D9F7A4C4 X-CRM114-Status: GOOD ( 10.69 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [147.243.1.47 listed in list.dnswl.org] 0.0 TVD_RCVD_SPACE_BRACKET TVD_RCVD_SPACE_BRACKET -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: Andy Shevchenko X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Use ssize_t instead of size_t. Signed-off-by: Andy Shevchenko --- tests/fs-tests/stress/atoms/rndwrite00.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/fs-tests/stress/atoms/rndwrite00.c b/tests/fs-tests/stress/atoms/rndwrite00.c index 655d9cc..3c38e43 100644 --- a/tests/fs-tests/stress/atoms/rndwrite00.c +++ b/tests/fs-tests/stress/atoms/rndwrite00.c @@ -36,7 +36,7 @@ static void check_file(int fd, char *data, size_t length) { - size_t n, i; + ssize_t n, i; char buf[BUFFER_SIZE]; CHECK(lseek(fd, 0, SEEK_SET) != -1);