[PATCHv1 3/5] tests: fs-tests: read() returns ssize_t value

Andy Shevchenko ext-andriy.shevchenko at nokia.com
Wed Apr 13 09:20:27 EDT 2011


Use ssize_t instead of size_t.

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko at nokia.com>
---
 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);
-- 
1.6.3.3




More information about the linux-mtd mailing list